/* Global Styles & Typography */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

body {
    font-family: 'SolaimanLipi', Arial, sans-serif;
    background-color: #F8F9FA;
    color: #555;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2C3E50;
    font-weight: bold;
}

a {
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #DC143C;
    text-decoration: none;
}

.bg-light {
    background-color: #F8F9FA;
}

/* Helper Classes */
.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.section-spacer {
    margin-bottom: 25px;
}

.border-right {
    border-right: 1px solid #ddd;
}

/* Previous 48 Hours List Styles */
.previous-48h-list {
    list-style: none;
    padding: 0;
    column-count: 3;
    /* Multi-column list */
    column-gap: 30px;
}

.previous-48h-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    break-inside: avoid;
    /* Prevent split across columns */
}

.prev-news-link {
    display: flex;
    align-items: flex-start;
    color: #333;
    text-decoration: none !important;
    transition: color 0.3s;
}

.prev-news-link:hover {
    color: #e74c3c;
}

.prev-news-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px;
}

.prev-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-news-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.section-header-red {
    border-bottom: 3px solid #e74c3c;
    margin-bottom: 20px;
}

.section-header-red h4 {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    margin: 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .previous-48h-list {
        column-count: 1;
    }

    .prev-news-thumb {
        width: 100px;
        height: 75px;
    }

    /* Slightly larger on mobile single column */
}

/* Top Bar */
.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    padding: 5px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-weather {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: #DC143C;
    color: white;
    border: none;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 3px;
    transition: background 0.3s;
}

.lang-btn:hover {
    background: #b90e30;
    color: white;
    text-decoration: none;
}

/* Sticky Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ececec;
}

.logo-img {
    max-height: 90px;
    /* Reduced slightly to fit better if needed */
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
}

.icon-btn {
    font-size: 20px;
    color: #2C3E50;
    margin-left: 15px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.icon-btn:hover {
    color: #DC143C;
    background: #f9f9f9;
    border-color: #eee;
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #DC143C;
    z-index: 1050;
    transition: right 0.3s ease;
    padding: 20px;
    color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.off-canvas-menu.open {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.menu-header h3 {
    color: white;
    margin: 0;
}

.close-btn {
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.menu-list {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.menu-list::-webkit-scrollbar {
    width: 5px;
}

.menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.menu-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-list li a {
    display: block;
    padding: 12px 0;
    color: white;
    font-size: 18px;
}

.menu-list li a:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-container {
    width: 80%;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    cursor: pointer;
    color: #555;
}

#mainSearchInput {
    width: 100%;
    border: none;
    border-bottom: 2px solid #DC143C;
    font-size: 30px;
    padding: 15px;
    background: transparent;
    outline: none;
    margin-bottom: 20px;
}

/* Removed Ad Placeholders as per request */

/* News Ticker */
.news-ticker-wrapper {
    display: flex;
    align-items: center;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 40px;
    overflow: hidden;
}

.ticker-label {
    background: #CB0112;
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ticker-content {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-animation 60s linear infinite;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-animation {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker-item {
    margin-right: 50px;
    display: inline-block;
    font-size: 15px;
}

.ticker-item a {
    color: #333;
    font-weight: 500;
}

.ticker-item a:hover {
    color: #CB0112;
}

/* Category Tabs */
.category-tabs-wrapper {
    background: white;
    border-bottom: 2px solid #eee;
    overflow: hidden;
    /* Prevent scrollbar affecting layout width */
}

.category-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    /* Remove Bootstrap border */
    margin-bottom: -1px;
    /* Align with border */
    padding-bottom: 5px;
    /* Space for scrollbar */
}

/* Styled Scrollbar */
.category-nav::-webkit-scrollbar {
    height: 3px;
    display: block;
}

.category-nav::-webkit-scrollbar-track {
    background: transparent;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 2px;
}

.category-nav {
    /* For Firefox */
    scrollbar-width: thin;
    scrollbar-color: #e74c3c transparent;
}

.category-nav>li {
    float: none;
    flex: 0 0 auto;
    display: inline-block;
}

.category-nav>li>a {
    color: #555;
    font-weight: bold;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    margin-right: 0;
}

.category-nav>li.active>a,
.category-nav>li.active>a:focus,
.category-nav>li.active>a:hover {
    color: #DC143C;
    background: transparent;
    border: none;
    border-bottom: 3px solid #DC143C;
}

/* News Lists & Grid */
.vertical-news-list .news-item-small {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.vertical-news-list .news-item-small:last-child {
    border-bottom: none;
}

.news-thumb-small {
    width: 100px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
}

.news-title-small {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.section-header-small h4 {
    border-left: 4px solid #DC143C;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* Feature News */
.hero-section img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.hero-excerpt {
    color: #666;
    font-size: 15px;
}

/* Sub Grid Flex Fix */
#subGridNews {
    display: flex;
    flex-wrap: wrap;
}

#subGridNews .col-sm-6 {
    /* Ensure columns are equal height if needed, though row flex handles the wrapping correctly */
    display: flex;
    flex-direction: column;
}

/* Sub Grid Card */
.sub-news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.sub-news-card:hover img {
    transform: scale(1.05);
}

.sub-news-card {
    margin-bottom: 20px;
    overflow: hidden;
    flex: 1;
    /* Stretch to fill column */
}

.sub-news-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;

    /* Line Clamping for equal heights */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2em;
    /* Ensure consistent height approx 3 lines */
}

/* Most Read */
.section-title-red-underline {
    border-bottom: 2px solid #DC143C;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: inline-block;
}

.most-read-section .numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: most-read-counter;
}

.most-read-section .numbered-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.most-read-section .numbered-list li::before {
    counter-increment: most-read-counter;
    content: counter(most-read-counter);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 24px;
    font-weight: bold;
    color: #DC143C;
    font-family: Arial, sans-serif;
}

/* Calendar Widget */
.calendar-widget-sidebar {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 30px;
}

.cal-header {
    background: #DC143C;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 0;
}

.cal-date {
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.cal-date:hover {
    background: #f1f1f1;
}

.cal-today {
    background: #DC143C;
    color: white;
}

.cal-today:hover {
    background: #c01135;
}

/* Section Headers */
.section-header-with-bar h3 {
    margin-bottom: 15px;
    font-weight: bold;
}

.red-bar {
    color: #DC143C;
    font-weight: 900;
    margin-right: 5px;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 30px;
}

.red-marker {
    color: #DC143C;
    font-size: 18px;
    vertical-align: middle;
}

.section-header-left {
    margin-bottom: 20px;
}

.red-divider {
    border-top: 2px solid #DC143C;
    width: 50px;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* Bangladeshi Newspaper Style Section Header */
.section-header-bd {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.section-header-bd .header-box {
    display: inline-block;
    width: 8px;
    height: 24px;
    background: #108ee9;
    margin-right: 10px;
    flex-shrink: 0;
}

.section-header-bd h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #2C3E50;
}

/* Carousel Inner Styles - Caption Hidden */
.carousel-caption {
    display: none;
    /* Hide caption/summary text */
}

.carousel-caption h3 {
    display: none;
}

/* Poll Widget */
.poll-widget {
    border: 1px solid #e1e1e1;
    background: white;
    padding: 12px;
    margin-top: 12px;
}

.poll-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.poll-header h4 {
    margin: 0;
    color: #DC143C;
    font-weight: bold;
}

.poll-question {
    font-weight: bold;
    margin-bottom: 15px;
}

/* Poll Results Styles */
.poll-results {
    margin-top: 20px;
}

.poll-result-item {
    margin-bottom: 15px;
}

.poll-result-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.poll-result-percentage {
    font-weight: bold;
    color: #DC143C;
}

.poll-result-bar {
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.poll-result-fill {
    height: 100%;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: white;
    font-size: 12px;
}

.poll-result-fill.for {
    background: linear-gradient(90deg, #28a745 0%, #34d058 100%);
}

.poll-result-fill.against {
    background: linear-gradient(90deg, #dc3545 0%, #ff4757 100%);
}

.poll-result-fill.neutral {
    background: linear-gradient(90deg, #6c757d 0%, #95a5a6 100%);
}

.poll-result-count {
    font-size: 12px;
    color: #666;
}

.poll-total-votes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    text-align: center;
    color: #2C3E50;
}

/* Video Card */
.video-card {
    margin-bottom: 20px;
}

.video-thumb {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 0.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Footer */
.main-footer {
    background: #2C3E50;
    color: #ccc;
    margin-top: 50px;
}

.footer-top {
    background: #1a252f;
    padding: 20px 0;
}

.footer-logo {
    opacity: 0.8;
}

.app-btn {
    display: inline-block;
    border: 1px solid #555;
    padding: 8px 15px;
    color: white;
    margin-left: 10px;
    border-radius: 4px;
}

.app-btn:hover {
    background: #555;
    color: white;
}

.footer-middle {
    padding: 40px 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.footer-nav li {
    display: inline-block;
    margin: 0 10px;
}

.footer-nav li a {
    color: #ddd;
    font-size: 16px;
}

.footer-nav li a:hover {
    color: #fff;
}

.footer-desc {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 14px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #DC143C;
}

.footer-bottom {
    background: #1a252f;
    padding: 15px 0;
    font-size: 13px;
    border-top: 1px solid #34495e;
}

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {
    .border-right {
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .news-item-small {
        margin-bottom: 15px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* Video Section Styles */
.video-card {
    margin-bottom: 20px;
    cursor: pointer;
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
}

.video-thumb img {
    width: 100%;
    height: 180px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-icon i {
    margin-left: 2px;
    /* Center the icon visually */
}

.video-card:hover .play-icon {
    background: #DC143C;
    border-color: #DC143C;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h5 {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0 0;
    line-height: 1.4;
    color: #333;
}

.video-card:hover h5 {
    color: #DC143C;
}

/* Fix Carousel Image Sizing - 1080x1080 Square Format */
.carousel-inner>.item>img,
.carousel-inner>.item>a>img {
    width: 100%;
    max-width: 1080px;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Square format */
    object-fit: cover;
    display: block;
    margin: 0 auto;
    /* Center the image */
}

/* For browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {

    .carousel-inner>.item>img,
    .carousel-inner>.item>a>img {
        height: 1080px;
    }
}

/* Large Desktop - Full 1080x1080 */
@media (min-width: 1200px) {

    .carousel-inner>.item>img,
    .carousel-inner>.item>a>img {
        max-width: 1080px;
    }
}

/* Desktop - Slightly smaller but maintain square */
@media (max-width: 1199px) and (min-width: 992px) {

    .carousel-inner>.item>img,
    .carousel-inner>.item>a>img {
        max-width: 900px;
    }

    @supports not (aspect-ratio: 1 / 1) {

        .carousel-inner>.item>img,
        .carousel-inner>.item>a>img {
            height: 900px;
        }
    }
}

/* Tablet - Square format maintained */
@media (max-width: 991px) and (min-width: 768px) {

    .carousel-inner>.item>img,
    .carousel-inner>.item>a>img {
        max-width: 700px;
    }

    @supports not (aspect-ratio: 1 / 1) {

        .carousel-inner>.item>img,
        .carousel-inner>.item>a>img {
            height: 700px;
        }
    }
}

/* Mobile - Square Format (1080x1080 style) */
@media (max-width: 767px) {

    .carousel-inner>.item>img,
    .carousel-inner>.item>a>img {
        max-width: 1080px;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        /* Perfect Square */
        height: auto !important;
        margin: 0 auto;
        object-fit: cover;
    }

    /* For browsers without aspect-ratio support */
    @supports not (aspect-ratio: 1 / 1) {

        .carousel-inner>.item>img,
        .carousel-inner>.item>a>img {
            height: 100vw !important;
        }
    }

    /* Ensure carousel container takes full width */
    .carousel,
    .carousel-inner,
    .carousel-inner>.item {
        width: 100%;
        max-width: 1080px;
        margin: 0 auto;
        padding: 0;
    }
}

/* Floating Calendar Widget */
.floating-calendar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px 8px 0 0;
    z-index: 1060;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

.floating-calendar.minimized {
    transform: translateY(calc(100% - 50px));
    /* Keep header visible */
}

.floating-cal-header {
    background: #DC143C;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    height: 50px;
    user-select: none;
}

.floating-cal-header:hover {
    background: #c0392b;
}

.toggle-icon {
    transition: transform 0.3s;
}

.floating-calendar.minimized .toggle-icon {
    transform: rotate(180deg);
}

.floating-cal-body {
    padding: 15px;
    background: white;
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cal-nav button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.2s;
}

.cal-nav button:hover {
    color: #DC143C;
}

.cal-month-display {
    font-weight: bold;
    color: #2C3E50;
    font-size: 16px;
}

/* Reusing grid styles with adjustments */
.cal-days,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.cal-days {
    font-weight: bold;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.cal-date {
    padding: 8px 0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.cal-date:hover {
    background-color: #f1f1f1;
    color: #DC143C;
}

.cal-selected {
    background-color: #DC143C !important;
    color: white !important;
}

/* Video Section Styles */
.video-card {
    margin-bottom: 20px;
    cursor: pointer;
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
}

.video-thumb img {
    width: 100%;
    height: 180px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-icon i {
    margin-left: 2px;
    /* Center the icon visually */
}

.video-card:hover .play-icon {
    background: #DC143C;
    border-color: #DC143C;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h5 {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0 0;
    line-height: 1.4;
    color: #333;
}

.video-card:hover h5 {
    color: #DC143C;
}


/* Floating Calendar Widget */
.floating-calendar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px 8px 0 0;
    z-index: 1060;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

.floating-calendar.minimized {
    transform: translateY(calc(100% - 50px));
    /* Keep header visible */
}

.floating-cal-header {
    background: #DC143C;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    height: 50px;
    user-select: none;
}

.floating-cal-header:hover {
    background: #c0392b;
}

.toggle-icon {
    transition: transform 0.3s;
}

.floating-calendar.minimized .toggle-icon {
    transform: rotate(180deg);
}

.floating-cal-body {
    padding: 15px;
    background: white;
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cal-nav button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.2s;
}

.cal-nav button:hover {
    color: #DC143C;
}

.cal-month-display {
    font-weight: bold;
    color: #2C3E50;
    font-size: 16px;
}

/* Reusing grid styles with adjustments */
.cal-days,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.cal-days {
    font-weight: bold;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.cal-date {
    padding: 8px 0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.cal-date:hover {
    background-color: #f1f1f1;
    color: #DC143C;
}

.cal-selected {
    background-color: #DC143C !important;
    color: white !important;
}

.cal-today {
    border: 1px solid #DC143C;
    font-weight: bold;
    color: #DC143C;
}

/* Interactive Tabs & Lists Modern Design */
.interactive-tabs {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.interactive-tabs .nav-pills {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 8px;
}

.interactive-tabs .nav-pills>li>a {
    border-radius: 6px;
    font-weight: bold;
    color: #555;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.interactive-tabs .nav-pills>li.active>a,
.interactive-tabs .nav-pills>li.active>a:focus,
.interactive-tabs .nav-pills>li.active>a:hover {
    background-color: #DC143C !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

.interactive-tabs .nav-pills>li>a:hover {
    background: #fff;
    border-color: #ddd;
    color: #DC143C;
}

.custom-tab-content {
    padding: 10px 0 0 0;
    /* Added space between header and content */
}

/* Force removal of bullets and set clean list styles */
.simple-list,
.interactive-tabs ul.simple-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.simple-list li {
    padding: 8px 15px;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    list-style-type: none !important;
}

.simple-list li::before {
    content: '\f105';
    /* fontawesome chevron */
    font-family: 'FontAwesome';
    margin-right: 12px;
    color: #DC143C;
    font-weight: bold;
    opacity: 0.6;
}

.simple-list li:hover {
    background: #fffcfc;
}

.simple-list li:last-child {
    border-bottom: none;
}

.simple-list li a {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
}

.simple-list li:hover a {
    color: #DC143C;
}

/* Adjust Tab Panel padding and animation */
.tab-pane {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MIGRATED FOOTER STYLES (From news-detail.html)
   ========================================================================== */

:root {
    /* Footer Colors */
    --footer-bg: #0D47A1;
    /* Footer Background - Navy Blue */
    --footer-dark: #0a3066;
    /* Dark Footer Sections */
    --footer-light: #1565C0;
    /* Light Footer Sections */
    --footer-border: #1E88E5;
    /* Footer Borders */
    --footer-text: #FFFFFF;
    /* Footer Text - White */
    --footer-text-light: #BBDEFB;
    /* Footer Light Text */

    --brand-green: #8BC34A;
    --brand-red: #C2185B;
    --brand-red-dark: #AD1457;

    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-dark) 100%);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 3px solid var(--brand-green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
    color: white;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--brand-red);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    line-height: 1.6;
    color: white;
}

/* Footer Contact Info */
.footer-contact-info {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--footer-text-light);
    font-size: 14px;
    line-height: 1.5;
}

.contact-item i {
    color: var(--brand-green);
    margin-top: 3px;
}

.contact-label {
    font-weight: 600;
    color: white;
    min-width: 80px;
}

/* Newsletter in footer */
.newsletter-form-footer {
    margin-top: 15px;
}

.newsletter-form-footer input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
}

.newsletter-form-footer input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-footer button {
    width: 100%;
    padding: 12px;
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form-footer button:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--brand-red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.3);
}

.back-to-top.visible {
    display: flex;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-column h3 {
        border-bottom: 2px solid var(--brand-red);
        display: inline-block;
        padding-bottom: 5px;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   ADDITIONAL RESPONSIVE STYLES FOR PHOTO CAROUSEL
   ========================================================================== */

/* Ensure carousel container is properly sized */
.carousel {
    margin-bottom: 20px;
}

/* Carousel controls responsive sizing */
.carousel-control {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control:hover {
    opacity: 1;
}

/* Mobile: Make carousel controls smaller and less intrusive */
@media (max-width: 767px) {

    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right {
        font-size: 20px;
    }

    .carousel-control {
        width: 10%;
    }

    /* Adjust carousel indicators for mobile */
    .carousel-indicators {
        bottom: 5px;
    }

    .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Small mobile: Further reduce control size */
@media (max-width: 480px) {

    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right {
        font-size: 16px;
    }

    .carousel-indicators li {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }
}

/* Ensure photo section spacing is responsive */
@media (max-width: 991px) {
    .section-spacer {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .section-spacer {
        margin-bottom: 15px;
    }

    /* Stack photo and video sections on mobile */
    .col-md-8,
    .col-md-4 {
        margin-bottom: 20px;
    }

    /* Remove padding from photo carousel section on mobile */
    .col-md-8 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure carousel slides are full width */
    #photoCarousel {
        margin-left: 0;
        margin-right: 0;
    }

    /* Remove any container padding for carousel */
    .carousel-inner>.item {
        padding: 0;
    }
}