/* =========================================
   1. VARIABLES & RESET (Basic Settings)
   ========================================= */
:root {
    --yale-blue: #074575;
    /* Main Brand Color */
    --silver: #c0c0c0;
    /* Silver Color for borders/hover */
    --pale-blue: #e3f2fd;
    /* Light blue for pagination bg */
    --white: #ffffff;
    --light-gray: #f4f4f4;
    /* Background color */
    --dark-bg: #002347;
    /* Top bar dark blue */
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: #333;
    line-height: 1.6;
}


/* =========================================
   2. TOP BAR (Desktop Only)
   ========================================= */

.top-bar {
    background: #054c81;
    /* Yale Blue shade */
    color: white;
    padding: 5px 0;
    font-size: 12px;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ஐகானுக்கும் உரைக்கும் இடையிலான இடைவெளி */
.top-left span i {
    margin-right: 8px;
    color: silver;
    /* ஐகான்களுக்கு மட்டும் சில்வர் நிறம் கொடுக்கலாம் */
}

/* ஒவ்வொரு தகவலுக்கும் (Date, Mail, Phone) இடையிலான இடைவெளி */
.top-left span {
    margin-right: 30px;
    /* நீங்கள் கேட்டபடி கூடுதல் இடைவெளி */
    display: inline-flex;
    align-items: center;
}

.top-right a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s ease;
}

.top-right a:hover {
    color: #c0c0c0;
    /* Hover செய்யும் போது Silver நிறம் */
}

/* =========================================
   3. MAIN HEADER & LOGO (Updated)
   ========================================= */
.header-main {
    background: var(--white);
    padding: 2px 0;
    /* மெல்லிய இடைவெளி */
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1001;
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    /* லோகோ உயரத்திற்கு ஏற்ப சரிசெய்யப்பட்டது */
}

.header-left {
    display: flex;
    align-items: left;
    gap: 15px;
}

/* Desktop-ல் மெனு பட்டனை மறைக்க */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--yale-blue);
    cursor: pointer;
    z-index: 1002;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block !important;
    }
}

/* Logo Styling */
.main-logo {
    height: 80px;
    /* நீங்கள் கேட்ட பெரிய அளவு */
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* =========================================
   4. ICONS & SEARCH BAR STYLE (Fixed)
   ========================================= */

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons button {
    background: transparent;
    border: none;
    color: var(--yale-blue);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
}

/* தேடல் பெட்டியின் பொதுவான ஸ்டைல் */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    overflow: hidden;
    position: relative;
}

/* டெஸ்க்டாப் - விரிவடையும் போது 300px */
.search-wrapper.active {
    width: 300px;
    background: #fff;
    border: 1px solid var(--yale-blue);
}

#searchInput {
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    width: 0;
    opacity: 0;
    transition: 0.4s;
    font-size: 14px;
    height: 100%;
}

.search-wrapper.active #searchInput {
    width: calc(100% - 40px);
    opacity: 1;
    padding-left: 15px;
}

.search-trigger {
    background: transparent;
    border: none;
    color: var(--yale-blue);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

/* --- மொபைல் வியூ மாற்றம் மட்டும் --- */
@media (max-width: 992px) {
    .header-main-flex {
        height: 70px;
    }

    .main-logo {
        height: 50px !important;
    }

    .header-center {
        display: none !important;
    }

    .search-wrapper.active {
        width: 180px !important;
    }
}

/* ஐகான் மேலே தெரிய */
/* ============================================================
   PREMIUM DARK MODE UI - HIGH-END AESTHETIC
   ============================================================ */
:root {
    --dark-deep: #030712;
    --dark-surface: #111827;
    --dark-elevated: #1f2937;
    --dark-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --text-pure: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
}

body.dark-theme {
    background-color: var(--dark-deep) !important;
    color: var(--text-muted) !important;
}

/* Glassmorphism Header & Nav */
body.dark-theme .header-main {
    background: rgba(17, 24, 39, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border) !important;
}

body.dark-theme .nav-container {
    background: rgba(3, 7, 18, 0.9) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dark-border) !important;
}

/* Elevated Cards & Sections */
body.dark-theme .news-card,
body.dark-theme .sidebar-box,
body.dark-theme .trending-bar-container,
body.dark-theme .feed-tabs,
body.dark-theme .card,
body.dark-theme .info-card,
body.dark-theme .content-box-wrapper,
body.dark-theme .obituary-section,
body.dark-theme .pagination a,
body.dark-theme .search-wrapper.active {
    background-color: var(--dark-surface) !important;
    border: 1px solid var(--dark-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-muted) !important;
}

/* Hover States & Interaction */
body.dark-theme .news-card:hover,
body.dark-theme .sidebar-box:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background-color: var(--dark-elevated) !important;
}

/* Typography & Hierarchy */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme .sidebar-title,
body.dark-theme .news-details h5 a,
body.dark-theme .nav-links li a,
body.dark-theme .header-nav-item span,
body.dark-theme .obituary-header {
    color: var(--text-pure) !important;
    font-weight: 600 !important;
}

body.dark-theme .news-snippet,
body.dark-theme .publish-time,
body.dark-theme .loc {
    color: var(--text-dim) !important;
}

/* Vibrant Accents */
body.dark-theme a,
body.dark-theme .sidebar-links li a,
body.dark-theme .more-link,
body.dark-theme .view-more {
    color: var(--accent-primary) !important;
    transition: 0.3s ease;
}

body.dark-theme .trending-label {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4) !important;
    color: white !important;
}

body.dark-theme .badge,
body.dark-theme .breaking-badge {
    background: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Forms & Inputs - Minimalist Dark */
body.dark-theme #searchInput,
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: #000000 !important;
    border: 1px solid var(--dark-border) !important;
    color: white !important;
    border-radius: 8px !important;
}

body.dark-theme .search-wrapper {
    background: #000000 !important;
    border: 1px solid var(--dark-border) !important;
}

/* Icons Fix */
body.dark-theme .header-nav-item i {
    color: var(--accent-primary) !important;
}

body.dark-theme #themeToggle {
    background: var(--dark-elevated) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

body.dark-theme #themeToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
}

body.dark-theme #themeToggle i {
    color: #fbbf24 !important; /* Land moon yellow */
}

/* Mobile Specifics */
body.dark-theme .bottom-nav.mobile-only {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--dark-border) !important;
}

body.dark-theme .nav-item i,
body.dark-theme .nav-item span {
    color: var(--text-dim) !important;
}

body.dark-theme .nav-item.active i,
body.dark-theme .nav-item.active span {
    color: var(--accent-primary) !important;
}
/* Obituary & Slider Special Sections */
body.dark-theme .obituary-section,
body.dark-theme .ob-info-v2,
body.dark-theme .ob-page,
body.dark-theme .news-slider-section,
body.dark-theme .slider-container,
body.dark-theme .slider-item,
body.dark-theme .slider-content {
    background-color: var(--dark-surface) !important;
    color: var(--text-muted) !important;
    border-color: var(--dark-border) !important;
}

body.dark-theme .obituary-main-header {
    background: #4a043a !important; /* Deeper purple for dark mode */
}

body.dark-theme .ob-info-v2 h4,
body.dark-theme .slider-title a,
body.dark-theme .slider-excerpt strong,
body.dark-theme .loc {
    color: var(--text-pure) !important;
}

body.dark-theme .rip-btn {
    background: var(--dark-elevated) !important;
    border: 1px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

body.dark-theme .rip-btn:hover {
    background: var(--accent-primary) !important;
    color: var(--dark-deep) !important;
}

body.dark-theme .slider-dot {
    background: var(--dark-elevated) !important;
    border: 1px solid var(--dark-border) !important;
}

body.dark-theme .slider-dot.active {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

body.dark-theme .slider-arrow {
    background: rgba(17, 24, 39, 0.8) !important;
    color: var(--accent-primary) !important;
}

/* Universal Dark Mode Cleanup */
body.dark-theme [style*="background: white"],
body.dark-theme [style*="background-color: white"],
body.dark-theme [style*="background: #fff"],
body.dark-theme [style*="background-color: #fff"],
body.dark-theme [style*="background: #f8f9fa"],
body.dark-theme [style*="background-color: #f8f9fa"] {
    background-color: var(--dark-surface) !important;
    color: var(--text-muted) !important;
    border-color: var(--dark-border) !important;
}

body.dark-theme {
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-theme .news-card,
body.dark-theme .sidebar-box,
body.dark-theme .header-main {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Generic Fallbacks for all pages */
body.dark-theme p, 
body.dark-theme li, 
body.dark-theme label {
    color: var(--text-muted) !important;
}

body.dark-theme .site-footer {
    background: var(--dark-deep) !important;
    border-top: 1px solid var(--dark-border) !important;
    color: var(--text-dim) !important;
}


/* 1. மெயின் பிளெக்ஸ் கண்டெய்னர் */
.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* இது முக்கியம் */
    height: 85px;
}

/* 2. லோகோ இருக்கும் பகுதி (இடது பக்கம் நிலையாக இருக்க) */
.header-left {
    flex: 0 0 auto;
    /* சுருங்காது */
    z-index: 5;
}

/* 3. நடுப்பகுதி - லோகோவைத் தொடாமல் காலியான இடத்தில் அமர */
.header-center {
    display: flex !important;
    /* காட்டப்படுவதை உறுதி செய்ய */
    flex-direction: row;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* மீதமுள்ள காலி இடத்தை எடுத்துக்கொள்ளும் */
    margin: 0 20px;
}

/* 4. ஐகான் மற்றும் உரை அமைப்பு */
.header-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 65px;
    text-decoration: none;
}

.header-nav-item i {
    font-size: 20px;
    color: #5b93cb;
    /* Silver Icon */
    margin-bottom: 2px;
}

.header-nav-item span {
    font-size: 11px;
    font-weight: bold;
    color: var(--yale-blue);
    /* Dark Blue */
    white-space: nowrap;
}

/* 5. வலது பக்கம் (சர்ச் & டார்க் மோட் நிலையாக இருக்க) */
.header-icons {
    flex: 0 0 auto;
    z-index: 5;
    display: flex;
    gap: 15px;
}

/* மொபைலில் மறைக்க */
@media (max-width: 992px) {
    .header-center {
        display: none !important;
    }

    .container {
        padding: 0 10px;
    }

    .top-left span {
        margin-right: 5px;
        font-size: 11px;
        padding: 0 2px;
    }

    .top-bar {
        padding: 2px 0;
    }

    .flex-header {
        gap: 5px;
        justify-content: center;
    }

    .header-main-flex {
        height: 55px;
        padding: 2px 0;
    }

    .main-logo {
        height: 35px !important;
    }
}

/* Navigation Menu - Adjusted */
.nav-container {
    background: var(--yale-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: block;
}

@media (max-width: 768px) {
    .nav-container {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 55px);
        overflow-y: auto;
        background: var(--yale-blue);
        z-index: 1000;
    }

    .nav-container.active {
        display: block !important;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a {
        padding: 15px 20px;
        font-size: 14px;
    }
}

.nav-container .container {
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Custom scrollbar alignment */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.3s;
}

/* ===== DESKTOP DROPDOWN MENU STYLING ===== */
.nav-item {
    position: relative;
}

.nav-item.has-dropdown>a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 10px;
}

.nav-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #074575;
    border-radius: 4px;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item:hover .nav-dropdown {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.nav-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown li:last-child {
    border-bottom: none;
}

.nav-dropdown a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.nav-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 18px;
}

/* Dark theme support for desktop dropdown */
body.dark-theme .nav-dropdown {
    background: #0a1f3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-theme .nav-dropdown a:hover {
    background-color: rgba(74, 177, 235, 0.2);
}

/* 1. ஸ்க்ரோல் பார் உயரம் (மெல்லியதாக மாற்றப்பட்டுள்ளது) */
.nav-container .container::-webkit-scrollbar {
    height: 5px;
}

/* 2. தடம் (Track) - மெனுவின் பின்னணியோடு இணைய */
.nav-container .container::-webkit-scrollbar-track {
    background: transparent;
    /* பின்னணி தேவையில்லை, அப்போதுதான் அழகாக இருக்கும் */
}

/* 3. நகரும் கைப்பிடி (Thumb) - மெல்லிய கோடு போல */
.nav-container .container::-webkit-scrollbar-thumb {
    background: rgba(189, 195, 199, 0.6);
    /* லேசான சாம்பல் நிறம் */
    border-radius: 10px;
    /* வட்டமான முனைகள் நவீனமாக இருக்கும் */
}

.nav-container .container::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* 4. சிறிய அம்புக்குறிகள் (Small Minimalist Arrows) */
.nav-container .container::-webkit-scrollbar-button:single-button {
    display: block;
    height: 15px;
    width: 12px;
    background-color: transparent;
    /* பட்டன் பின்புலம் தேவையில்லை */
}

/* இடது பக்க சிறிய அம்புக்குறி */
.nav-container .container::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gray'><path d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/></svg>");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* வலது பக்க சிறிய அம்புக்குறி */
.nav-container .container::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gray'><path d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/></svg>");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* டார்க் மோட் (Dark Mode) - தானாக நிறம் மாறும் */
body.dark-theme .nav-container .container::-webkit-scrollbar-thumb {
    background: rgba(222, 190, 190, 0.655);
}

/* --- TRENDING BAR CONTAINER --- */
.trending-bar-container {
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    padding: 10px 0;
    margin-bottom: 10px;
}

.container {
    max-width: 1200px;
    /* uniform width */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}


.trending-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 40px;
}

/* Breaking News Label */
.trending-label {
    background: linear-gradient(135deg, #ec41ff, #6e2bff);
    color: #fff;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.25);
    transition: transform 0.3s ease;
}

.trending-label:hover {
    transform: scale(1.05);
}

/* --- DESKTOP: Vertical Animation --- */
.flash-news-wrapper.desktop-only {
    position: relative;
    flex-grow: 1;
    height: 30px;
    overflow: hidden;
    display: block;
    /* Desktop-ல் மட்டும் காட்டும் */
}

.flash-news-item {
    position: absolute;
    width: 100%;
    color: #ad19a3;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    animation: flashSlideUp 12s infinite ease-in-out;
}

/* 4 செய்திகளுக்கான டைமிங் */
.flash-news-item:nth-child(1) {
    animation-delay: 0s;
}

.flash-news-item:nth-child(2) {
    animation-delay: 3s;
}

.flash-news-item:nth-child(3) {
    animation-delay: 6s;
}

.flash-news-item:nth-child(4) {
    animation-delay: 9s;
}

@keyframes flashSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    5% {
        opacity: 1;
        transform: translateY(0px);
    }

    25% {
        opacity: 1;
        transform: translateY(0px);
    }

    30% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 0;
    }
}

/* --- MOBILE: Horizontal Marquee --- */
.flash-news-marquee.mobile-only {
    display: none;
    /* ஆரம்பத்தில் மறைத்து வைக்கவும் */
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeScroll 15s linear infinite;
    color: #ad19a3;
    font-size: 14px;
    font-weight: 600;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile View (992px-க்கு கீழ் வரும்போது) */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .flash-news-marquee.mobile-only {
        display: block;
    }

    .trending-label {
        padding: 2px 6px;
        font-size: 9px;
    }

    .container {
        padding: 0 10px;
    }

    .trending-bar {
        gap: 8px;
        height: 30px;
    }

    .trending-bar-container {
        padding: 5px 0;
        margin-bottom: 5px;
    }
}

/* Desktop View (993px-க்கு மேல் வரும்போது) */
@media (min-width: 993px) {
    .mobile-only {
        display: none !important;
        /* Marquee-ஐ மறைக்கவும் */
    }
}

/* =========================================
    6. MAIN 3-COLUMN LAYOUT (மாற்றமில்லை)
   ========================================= */


/* --- SIDEBAR CONTAINER (Right Column) --- */
.right-sidebar.desktop-only {
    margin-bottom: 60px;
}

.sidebar-box {
    background: #f2f2f2;
    /* வெளிர் சாம்பல் பின்னணி */
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.sidebar-calendar-box {
    padding: 0;
}

.sidebar-calendar-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5fb 100%);
    color: #074575;
    text-align: left;
}

.sidebar-calendar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 69, 117, 0.1);
    flex-shrink: 0;
}

.sidebar-calendar-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.sidebar-calendar-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-calendar-date {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-calendar-box .date-picker-inline {
    display: none;
}

.sidebar-calendar-box .flatpickr-calendar.inline {
    width: 100%;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(7, 69, 117, 0.12);
}

.sidebar-calendar-box .flatpickr-days,
.sidebar-calendar-box .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.sidebar-calendar-box .dayContainer {
    justify-content: space-between;
}

.sidebar-calendar-box .flatpickr-day {
    max-width: calc(100% / 7);
}

.dark-theme .sidebar-calendar-header {
    background: linear-gradient(135deg, #0f172a 0%, #132238 100%);
    color: #e6f1ff;
}

.dark-theme .sidebar-calendar-icon {
    background: rgba(100, 255, 218, 0.12);
}

.dark-theme .sidebar-calendar-box .flatpickr-calendar.inline {
    background: #111827;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.sidebar-title {
    padding: 14px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.obituary-header {
    background: #5b0249 !important;
    color: white !important;
}

.memorial-header {
    background: #215282 !important;
    color: white !important;
}

/* --- CARD WRAPPER (Right Column-க்குள் மட்டும்) --- */
.static-news-wrapper {
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    gap: 15px;
}

/* --- தனித்தனி கார்டு டிசைன் (CENTERED DESIGN) --- */
.obituary-card-v2 {
    display: flex;
    flex-direction: column;
    /* செங்குத்தாக அடுக்க */
    align-items: center;
    /* படத்தை பாக்ஸின் நடுவில் (Center) வைக்க */
    text-align: center;
    /* விவரங்களை நடுவில் வைக்க */
    padding: 20px 10px;
    background: #ffffff;
    /* கார்டுக்கு மட்டும் வெள்ளை நிறம் */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.obituary-card-v2:hover {
    transform: translateY(-3px);
}

/* புகைப்பட டிசைன் - Center Circle */
.img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #cfc211;
    /* கோல்டன் பார்டர் */
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* விவரங்கள் (Details Below Image) */
.ob-info-v2 {
    width: 100%;
}

.ob-info-v2 h4 {
    font-size: 15px;
    color: #00356b;
    /* Yale Blue */
    font-weight: bold;
    margin: 5px 0;
    line-height: 1.4;
}

.ob-info-v2 .loc {
    font-size: 13px;
    color: #666666;
    margin: 0 0 12px 0;
}

/* RIP Video Button */
.rip-btn {
    background: #97840a;
    color: white !important;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

/* Link */
.view-more {
    display: block;
    color: #b8860b !important;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

.view-more:hover {
    text-decoration: underline;
}

/* =========================================
   MOBILE RESPONSIVE (Layout பாதுகாப்பானது)
   ========================================= */
@media (max-width: 768px) {
    .main-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .obituary-card-v2 {
        padding: 15px 5px;
    }
}

/* =========================================
   7. NEWS FEED (Center)
   ========================================= */
.feed-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    grid-column: 1 / -1;
    /* Span across all grid columns */
    width: 100%;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: none;
    font-size: 15px;
}

.tab-btn.active {
    background: var(--yale-blue);
    color: rgb(238, 240, 241);
    border-radius: 4px 4px 0 0;
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Index page specific: List view on desktop only */
@media (min-width: 769px) {

    .home-page .news-feed,
    .search-page .news-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-page .news-card,
    .search-page .news-card {
        flex-direction: row;
        height: 225px;
        /* Balanced height for smaller images */
    }

    .home-page .news-img,
    .search-page .news-img {
        width: 230px;
        height: 100%;
        flex: 0 0 230px;
    }

    .home-page .news-details,
    .search-page .news-details {
        padding: 20px;
    }

    .news-details h3,
    .news-details h5 {
        font-size: 20px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-page .news-snippet,
    .search-page .news-snippet {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* Show 4 lines on desktop */
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 15px;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Breaking Badge Styles */
.breaking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    /* Red color */
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    padding: 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-details h3,
.news-details h5 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
}

.news-details h5 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    display: block;
}

.news-details h5 a:hover {
    color: #e74c3c;
}

.news-snippet {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 8px 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-theme .news-snippet {
    color: #94a3b8;
}

.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.news-meta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.more-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.publish-time {
    color: #888;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.publish-date-part {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   MOBILE RESPONSIVE GRID (768px and below)
   ========================================= */
@media (max-width: 768px) {

    /* மெயின் லேஅவுட்டை ஒரு வரிசையாக மாற்றுதல் */
    .main-content-wrapper {
        display: block;
        margin-top: 10px;
    }

    /* சைட்பாரை மொபைலில் மறைக்க (தேவையென்றால் மட்டும்) */
    .left-sidebar {
        display: none;
    }

    /* நியூஸ் பீட் கிரிட் அமைப்பு - ALL PAGES */
    .news-feed,
    .category-news-feed,
    .search-results-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .feed-tabs {
        grid-column: span 2;
        display: flex;
        margin-bottom: 8px;
    }

    .tab-btn {
        flex: 1;
        padding: 6px;
        font-size: 12px;
        text-align: center;
    }

    .news-card {
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #166aa2;
        height: 100%;
        background: #fff;
    }

    .news-img {
        width: 100%;
        height: 90px;
    }

    .news-img img {
        width: 100%;
        height: 100%;
        border-radius: 8px 8px 0 0;
    }

    .news-details {
        padding: 10px;
    }

    .news-details h3,
    .news-details h5 {
        font-size: 13px;
        line-height: 1.2;
        font-weight: 700;
        text-align: left;
        margin-bottom: 3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--yale-blue);
    }

    .news-snippet {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
    }

    .video-icon {
        font-size: 7px;
        padding: 1px 4px;
    }
}

/* =========================================
   8. PAGINATION (UPDATED TO CENTER)
   ========================================= */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    /* இப்போது சரியாக நடுவில் அமையும் (Centered) */
    margin-top: 25px;
    /* மேலே சற்று கூடுதல் இடைவெளி */
    margin-bottom: 40px;
    /* Increased bottom margin */
}

.pagination {
    display: flex;
    gap: 8px;
    /* பட்டன்களுக்கு இடையே சீரான இடைவெளி */
    align-items: center;
}

.pagination a {
    text-decoration: none;
    padding: 8px 14px;
    /* சொடுக்க எளிதாக இருக்க சற்று பெரிய அளவு */
    border: 1px solid var(--silver);
    color: var(--yale-blue);
    background-color: var(--white);
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* எண்களுக்கான பிரத்யேக Pale Blue நிறம் */
.page-numbers {
    background-color: var(--pale-blue) !important;
}

/* மவுஸ் பட்டன் மேல் வரும்போது Silver நிறம் */
.pagination a:hover {
    background-color: var(--silver);
    color: white;
    border-color: var(--silver);
}

/* தற்போது இருக்கும் பக்கத்திற்கு Yale Blue */
.pagination a.active {
    background-color: var(--yale-blue) !important;
    color: white;
    border-color: var(--yale-blue);
}

.dots {
    color: #999;
    padding: 0 5px;
    font-weight: bold;
}

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */


@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        display: none;
        width: 100%;
        position: absolute;
        left: 0;
    }

    .nav-container.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
    }

    .news-card {
        flex-direction: column;
    }

    .news-img img {
        width: 100%;
        height: auto;
    }

    .news-details {
        padding-left: 0;
        padding-top: 15px;
    }

    /* Mobile-ல் Pagination நடுவில் வர */
    .pagination-wrapper {
        justify-content: center;
    }

    /* Mobile view: Show only the first position image */
    .position-images-row {
        grid-template-columns: 1fr !important;
    }

    .position-images-row .position-image-item:nth-child(n+2) {
        display: none !important;
    }
}

/* =========================================
   10. FOOTER
   ========================================= */

footer {
    background: #02426a;
    color: #ccc;
    padding: 10px 0;
    margin-top: 50px;
    font-size: 14px;
}

footer .container {
    max-width: 1200px;
    /* uniform width */
    margin: 0 auto;
    /* center align */
    text-align: center;
    /* text center */
}

.badge-new {
    background: #e74c3c;
    color: rgb(208, 222, 128);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
}

@media (max-width: 768px) {

    /* 1. பாடி வெளியே நகர்வதைத் தடுக்க */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 8px;
        width: 100%;
    }

    /* 2. Breaking News பெட்டியைச் சரிசெய்தல் */
    .trending-bar-container {
        width: 100%;
        overflow: hidden;
    }

    .trending-bar {
        margin: 3px 0;
        display: flex;
        width: 100%;
    }

    /* 3. முக்கியமான திருத்தம்: News Feed Grid */
    .news-feed {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .news-card {
        margin: 0;
        width: 100%;
    }

    /* 4. படங்களைச் சுருக்குதல் */
    .news-img img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }

    .news-snippet {
        text-align: center;
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 6px;
    }

    .read-more-btn {
        margin: 0 auto !important;
        justify-content: center;
        padding: 4px 8px;
    }

    /* ===== MOBILE SUBMENU DROPDOWN STYLING ===== */

    /* Container for nav items with subcategories */
    .mobile-nav-item.has-submenu {
        position: relative;
    }

    /* Header container with category link and dropdown button */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .mobile-nav-header a {
        flex: 1;
        text-decoration: none;
        color: inherit;
    }

    /* Dropdown toggle button */
    .dropdown-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--yale-blue);
        transition: transform 0.3s ease;
        font-size: 16px;
    }

    .dropdown-toggle:hover {
        color: #0056b3;
    }

    .dropdown-toggle.open i {
        transform: rotate(180deg);
    }

    /* Submenu styling - hidden by default */
    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        background: #f5f5f5;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    .mobile-submenu.active {
        max-height: 500px;
        opacity: 1;
    }

    .mobile-submenu li {
        padding: 0;
        margin: 0;
    }

    .mobile-submenu a {
        display: block;
        padding: 10px 15px 10px 40px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s ease;
    }

    .mobile-submenu a:hover {
        background-color: #e8e8e8;
        color: var(--yale-blue);
    }

    /* Dark theme support for submenu */
    body.dark-theme .mobile-submenu {
        background: #1a1a1a;
    }

    body.dark-theme .mobile-submenu a {
        color: #f0f0f0;
        border-bottom-color: #333;
    }

    body.dark-theme .mobile-submenu a:hover {
        background-color: #2a2a2a;
        color: #74b1eb;
    }
}

/* --- UPDATED MOBILE BOTTOM NAV (TAMIL) --- */
.bottom-nav.mobile-only {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    border-top: 2px solid var(--yale-blue) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bottom-nav.mobile-only .nav-item {
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    color: #333 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
    height: 100% !important;
}

.bottom-nav.mobile-only .nav-item i {
    font-size: 22px !important;
    color: var(--yale-blue) !important;
    margin-bottom: 2px !important;
}

.bottom-nav.mobile-only .nav-item span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
}

/* Dark Mode for Bottom Nav */
body.dark-theme .bottom-nav.mobile-only {
    background: #0b1426 !important;
    border-top: 1px solid #1e293b !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .bottom-nav.mobile-only .nav-item {
    color: #cbd5e1 !important;
}

body.dark-theme .bottom-nav.mobile-only .nav-item i {
    color: #38bdf8 !important;
}

body.dark-theme .bottom-nav.mobile-only .nav-item span {
    color: #cbd5e1 !important;
}

/* Show only on mobile */
@media screen and (max-width: 768px) {
    .bottom-nav.mobile-only {
        display: flex !important;
    }

    body {
        padding-bottom: 60px !important;
    }
}

/* Hide on desktop */
@media screen and (min-width: 769px) {
    .bottom-nav.mobile-only {
        display: none !important;
    }
}

/* Dark mode support */
.dark-mode .bottom-nav.mobile-only {
    background: #1a1a1a !important;
    border-top-color: var(--yale-blue) !important;
}

.dark-mode .bottom-nav.mobile-only .nav-item {
    color: #f0f0f0 !important;
}

.dark-mode .bottom-nav.mobile-only .nav-item i {
    color: var(--yale-blue) !important;
}

.dark-mode .bottom-nav.mobile-only .nav-item span {
    color: #f0f0f0 !important;
}

/* Active state */
.bottom-nav.mobile-only .nav-item.active {
    color: var(--yale-blue) !important;
}

.bottom-nav.mobile-only .nav-item.active i {
    color: var(--yale-blue) !important;
}

.bottom-nav.mobile-only .nav-item.active span {
    color: var(--yale-blue) !important;
}

/* Hide on desktop */
@media screen and (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Mobile Categories Sidebar - Always hidden by default */
#mobileCategoriesSidebar {
    display: none !important;
    visibility: hidden !important;
}

/* Show only when active (via JavaScript) */
#mobileCategoriesSidebar.active {
    display: block !important;
    visibility: visible !important;
}

.mobile-categories-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
}

.mobile-categories-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.mobile-categories-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100% !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 10001 !important;
}

.mobile-categories-sidebar.active .mobile-categories-content {
    transform: translateX(0) !important;
}

.mobile-categories-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: var(--yale-blue) !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-categories-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.mobile-categories-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: background 0.3s ease !important;
}

.mobile-categories-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.mobile-categories-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 10px 0 !important;
}

.mobile-categories-list .category-item {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: background 0.2s ease !important;
}

.mobile-categories-list .category-item:hover {
    background: #f8f9fa !important;
    color: var(--yale-blue) !important;
}

.mobile-categories-list .category-item i {
    margin-right: 10px !important;
    width: 20px !important;
    color: var(--yale-blue) !important;
}

.loading-categories {
    padding: 20px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* Dark mode for mobile categories */
body.dark-theme .mobile-categories-content {
    background: #111827 !important;
}

body.dark-theme .mobile-categories-list .category-item {
    color: #e5e7eb !important;
    border-bottom-color: #2d3748 !important;
}

body.dark-theme .mobile-categories-list .category-item:hover {
    background: #1f2937 !important;
}

body.dark-theme .mobile-categories-list .category-item i {
    color: #38bdf8 !important;
}

body.dark-theme .loading-categories {
    color: #9ca3af !important;
}

/* கிளிக் செய்யும் போது அல்லது Hover செய்யும் போது */
.nav-item:hover i {
    color: #db5ad0;
    /* Pinkish highlight for active state */
    transform: translateY(-2px);
}

/* டெஸ்க்டாப்பில் இதை மறைக்க */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* மொபைலில் மட்டும் தெரிய மற்றும் கீழே இடைவெளி விட */
/* --- கட்டாயமாக 3 காலம்களைக் கொண்டுவர --- */
.main-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* பிரியாமல் இருக்க */
    gap: 20px;
    max-width: 1260px;
    margin: 20px auto;
}

.left-sidebar {
    flex: 0 0 260px !important;
}

.main-column {
    flex: 1 !important;
    min-width: 0;
}

.right-sidebar {
    flex: 0 0 280px !important;
}

@media (min-width: 993px) {

    .left-sidebar,
    .right-sidebar {
        position: sticky;
        top: 65px;
        align-self: flex-start;
    }
}

/* Individual Sidebar Box Scroll Option */
.sidebar-box .sidebar-links {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

/* Custom Scrollbar for the links within the box */
.sidebar-box .sidebar-links::-webkit-scrollbar {
    width: 4px;
}

.sidebar-box .sidebar-links::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-box .sidebar-links::-webkit-scrollbar-thumb {
    background: rgba(7, 69, 117, 0.2);
    border-radius: 10px;
}

.sidebar-box .sidebar-links::-webkit-scrollbar-thumb:hover {
    background: var(--yale-blue);
}

/* மொபைலில் மட்டும் ஒன்றாக அடுக்குவதற்கு */
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column !important;
    }

    .left-sidebar,
    .main-column,
    .right-sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* இடது பக்க பெட்டிகளுக்கான ஸ்டைல் */
.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* தலைப்பு (பொழுதுபோக்கு) */
.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--yale-blue);
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* லிஸ்ட்கள் (Links) */
.sidebar-links {
    list-style: none;
    padding: 0;
}

/* Custom scrollbar for sidebar */
.sidebar-links::-webkit-scrollbar {
    width: 6px;
}

.sidebar-links::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-links::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-links::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.sidebar-links li {
    padding: 8px 0;
    border-bottom: 1px solid #ffffff;
}

.sidebar-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.3s;
}

.sidebar-links a:hover {
    color: var(--yale-blue);
    padding-left: 5px;
}

/* --- சிறப்பு பிரிவுகள் தேர்வு ஸ்டைல் --- */
.sidebar-select {
    width: calc(100% - 24px);
    padding: 10px 12px;
    margin: 12px 12px 15px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-select:hover {
    border-color: var(--yale-blue);
    background-color: #f9f9f9;
}

.sidebar-select:focus {
    outline: none;
    border-color: var(--yale-blue);
    box-shadow: 0 0 5px rgba(7, 69, 117, 0.3);
}

body.dark-theme .sidebar-select {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .sidebar-select:hover {
    border-color: #74b1eb;
    background-color: #2a2a2a;
}

/* --- விரிவான செய்தித் தொகுப்பிற்கான ஸ்டைல் --- */

.news-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Hind Madurai', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: justify;
}

.news-details h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* பட்டனை அழுத்திய பின் செய்தியைக் காண்பிக்க (அனிமேஷனுடன்) */
.news-card.active .news-snippet {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    animation: fadeInNews 0.4s ease-in-out;
}

@keyframes fadeInNews {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* பட்டன் ஸ்டைல் - சிறிய திருத்தம் */
.read-more-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #349dc0 !important;
    font-weight: 700 !important;
    cursor: pointer;
    padding: 5px 0 !important;
    /* சற்று இடைவெளி */
    margin-top: 5px !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    color: #468bd4 !important;
    /* ஹோவர் செய்யும் போது நிறம் மாறும் */
    text-decoration: underline;
}

/* --- டார்க் மோட் (விருப்பமென்றால் சேர்க்கலாம்) --- */
body.dark-theme .news-snippet {
    color: #b0c4de;
}

body.dark-theme .news-details h5 {
    color: #ffffff;
}

/* =========================================
   OBITUARY SECTION - DESKTOP & GENERAL
   ========================================= */

/* ஒவ்வொரு அறிவித்தல் பெட்டியும் */
.obituary-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* கூடுதல் விவரங்கள் (தோற்றம்/மறைவு/குறிப்பு) */
.ob-details-text {
    font-size: 13px;
    color: #444;
    margin: 12px 0;
    line-height: 1.5;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

.ob-details-text strong {
    color: #074575;
}

/* PAGINATION - டெஸ்க்டாப்பில் மட்டும் காட்டும் வகையில் */
.card-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    background: #f9fbff;
    border-top: 1px solid #eee;
}

.pg-num {
    cursor: pointer;
    padding: 3px 10px;
    font-size: 13px;
    border: 1px solid #074575;
    border-radius: 4px;
    color: #074575;
    font-weight: 600;
    transition: 0.3s;
}

.pg-num.active {
    background: #074575;
    color: white;
}

.pg-arrow {
    background: none;
    border: none;
    color: #074575;
    cursor: pointer;
    font-size: 16px;
}

.pg-arrow:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* =========================================
   1. பொதுவான கார்டு வடிவமைப்பு (Desktop & General)
   ========================================= */
.obituary-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* கார்டுக்குள் இருக்கும் பக்கங்கள் */
.ob-page {
    display: none;
    /* ஆரம்பத்தில் மறைத்து வைக்க */
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-top: 10px;
    min-height: 60px;
}

.ob-page.active {
    display: block;
    /* ஆக்டிவ் பக்கத்தை மட்டும் காட்ட */
    animation: fadeInInner 0.4s ease-in-out;
}

@keyframes fadeInInner {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination பட்டன்கள் (எண்கள்) */
.card-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: #f9fbff;
    border-top: 1px solid #eee;
}

.pg-num {
    cursor: pointer;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid #074575;
    border-radius: 4px;
    color: #074575;
    font-weight: bold;
}

.pg-num.active {
    background: #074575;
    color: white;
}

.pg-arrow {
    background: none;
    border: none;
    color: #074575;
    cursor: pointer;
    font-size: 14px;
}

/* =========================================
   மொபைல் ஸ்லைடர் & டார்க் மோட் FIXED
   ========================================= */
@media (max-width: 992px) {
    .right-sidebar:not(.desktop-only) {
        display: block !important;
        overflow: hidden !important;
        width: 100% !important;
        /* !important நீக்கப்பட்டுள்ளது, அப்போதுதான் டார்க் மோட் வேலை செய்யும் */
        background: #f8fafc;
        padding: 20px 0 80px 0 !important;
        /* கீழே 80px கேப் விடப்பட்டுள்ளது */
        position: relative;
    }

    /* டார்க் மோட் மாறும்போது பேக்கிரவுண்ட் மாற */
    .dark-theme .right-sidebar {
        background: #1a1a1a !important;
    }

    .right-sidebar .right-sidebar-container {
        display: block !important;
        width: 100% !important;
    }

    .right-sidebar .sidebar-box {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* கார்டு உள்ளே இருக்கும் Pagination தெரியும்படி */
    .card-pagination {
        margin-top: 25px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding-bottom: 10px;
        z-index: 100;
        position: relative;
    }

    .pg-num {
        background: rgba(0, 0, 0, 0.05);
        padding: 6px 12px;
        border-radius: 5px;
        color: inherit;
    }

    /* டார்க் மோடில் எண்கள் தெளிவாகத் தெரிய */
    .dark-theme .pg-num {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .dark-theme .pg-num.active {
        background: #3498db;
    }

    @keyframes slideObituary {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }
}

/* 3-வது காலம் டார்க் மோடில் மாற - UPDATED */
.dark-theme .right-sidebar {
    background: #000102 !important;
    /* முழு சைட்பார் பின்னணி */
}

/* ஒவ்வொரு கார்டும் டார்க் மோடில் மாற */
.dark-theme .sidebar-box.obituary-section {
    background: #02132b !important;
    /* கார்டு பின்னணி */
    border: 1px solid #333 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* கார்டு உள்ளே இருக்கும் வெள்ளை பெட்டி டார்க் மோடில் மாற */
.dark-theme .obituary-card-v2 {
    background: #010816 !important;
    border: 1px solid #444 !important;
}

/* எழுத்துக்கள் பிரகாசமாக தெரிய (Font Brightening) */
.dark-theme .ob-info-v2 h4 {
    color: #ffffff !important;
    /* பெயர் - சுத்த வெள்ளை */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dark-theme .ob-info-v2 .loc {
    color: #ffcc00 !important;
    /* ஊர் பெயர் மஞ்சள் நிறத்தில் தனித்துக் காட்டும் */
}

.dark-theme .ob-page p {
    color: #f0f0f0 !important;
    /* விவரங்கள் இன்னும் பளிச்சென்று */
}

/* Pagination பகுதி டார்க் மோடில் மாற */
.dark-theme .card-pagination {
    background: #1a1a1a !important;
    /* வெள்ளை பட்டை இனி கருப்பாக இருக்கும் */
    border-top: 1px solid #333 !important;
    padding: 10px 0 !important;
}

/* Pagination எண்கள் டார்க் மோடில் */
.dark-theme .pg-num {
    background: #333 !important;
    color: #ffffff !important;
    border: 1px solid #555 !important;
}

.dark-theme .pg-num.active {
    background: #3498db !important;
    /* ஆக்டிவ் எண் நீல நிறம் */
    color: white !important;
}

/* அம்பு குறிகள் டார்க் மோடில் தெளிவாக தெரிய */
.dark-theme .pg-arrow {
    color: #3498db !important;
    /* அம்புகள் நீல நிறத்தில் பளிச்சென்று தெரியும் */
    font-size: 1.2rem !important;
    opacity: 1 !important;
}

.dark-theme .pg-arrow i {
    color: #3498db !important;
}

/* இது டார்க் மோடில் அந்த 4 ஐகான்களையும் பளிச்சென்று மாற்றும் */
.dark-theme header i,
.dark-theme header span,
.dark-theme .header-center i,
.dark-theme .header-middle a {
    color: #00d2ff !important;
    /* பிரகாசமான நீல நிறம் */
}

/* ஒருவேளை அது லிங்க் ஆக இருந்தால் */
.dark-theme header a {
    color: #ffffff !important;
    /* சுத்த வெள்ளை நிறம் */
}

/* =========================================
   BRAND GRID - FINAL ORIGINAL COLORS 
   ========================================= */

/* கிரிட் அமைப்பு */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
}

/* பட்டன் பொதுவான ஸ்டைல் */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
}

/* Hover எஃபெக்ட் */
.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* SVG ஐகான்கள் (Google & Gmail) */
.brand-item svg {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    display: block;
}

/* FontAwesome ஐகான்கள் (FB, Youtube, WA, LinkedIn) */
.brand-item i {
    font-size: 35px;
    /* ஐகான்கள் இன்னும் தடிமனாக தெரிய */
    margin-bottom: 12px;
    display: block;
}

/* எழுத்துக்கள் - தடிமனான 700 Weight */
.brand-item span {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* -----------------------------------------
   ஒரிஜினல் பிராண்ட் வண்ணங்கள் (Original Colors)
   ----------------------------------------- */

/* Facebook Blue */
.brand-item.facebook i {
    color: #1877F2 !important;
}

/* Youtube Red */
.brand-item.youtube i {
    color: #FF0000 !important;
}

/* WhatsApp Green (Original) */
.brand-item.whatsapp i {
    color: #25D366 !important;
}

/* LinkedIn Blue (Original) */
.brand-item.linkedin i {
    color: #0077B5 !important;
}

/* Google மல்டிகலர் டெக்ஸ்ட் */
.g-text {
    display: flex;
    gap: 1px;
    font-weight: 800;
}

.g-text .blue {
    color: #4285F4;
}

.g-text .red {
    color: #EA4335;
}

.g-text .yellow {
    color: #FBBC05;
}

.g-text .green {
    color: #34A853;
}

/* --- UPDATED BUTTON STYLES --- */

.tab-btn {
    padding: 12px 24px;
    /* Desktop-ku konjam perusa theriyum */
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Text break aagatha */

    /* Desktop-la romba stretch aagama irukka */
    min-width: 150px;
    max-width: fit-content;
    display: inline-block;
}

/* Active Button */
.tab-btn.active {
    background-color: #0e335b;
    color: #eae1e9;
    border-color: #0e335b;
    /* Border match panni irukken */
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .feed-tabs {
        display: flex;
        gap: 5px;
    }

    .tab-btn {
        flex: 1;
        /* Mobile-la equal space edukkum */
        min-width: unset;
        /* Mobile-la restriction vendaam */
        padding: 10px 5px;
        font-size: 14px;
        /* Mobile single line-ku idhu best */
        text-align: center;
    }
}

/* Screen romba chinna irundha (iPhone SE style) */
@media (max-width: 380px) {
    .tab-btn {
        font-size: 12px;
        padding: 8px 4px;
    }
}

/* --- DARK THEME --- */
body.dark-theme .tab-btn {
    background-color: #333;
    color: #f1f1f1;
    border-color: #444;
}

body.dark-theme .tab-btn.active {
    background-color: #083b7e;
    color: #ffffff;
    border-color: #083b7e;
}

/* =========================================
   10. FLATPICKR CUSTOM THEME
   ========================================= */
.flatpickr-calendar {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 12px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--yale-blue) !important;
    border-color: var(--yale-blue) !important;
    color: #fff !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--yale-blue);
    color: #fff;
    fill: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--yale-blue);
    color: #fff;
}

.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowTop:before {
    border-bottom-color: var(--yale-blue) !important;
}

.flatpickr-weekday {
    background: var(--yale-blue);
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: bold;
    padding: 10px 0;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-day.today {
    border-color: var(--yale-blue);
}

.flatpickr-day.today:hover {
    background: var(--yale-blue);
    border-color: var(--yale-blue);
    color: #fff;
}

@media (max-width: 992px) {
    .search-page .right-sidebar {
        display: none !important;
    }

    .main-content-wrapper {
        padding: 0 15px;
    }
}

/* =========================================
   SITE FOOTER - GLOBAL
   ========================================= */
.site-footer {
    background: #02426a;
    color: #ccc;
    padding: 10px 0;
    margin-top: 50px;
    font-size: 14px;
}

.site-footer span {
    font-weight: 700;
    color: white;
}

body.dark-theme .site-footer {
    background: #0b1426 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

/* body.dark-theme .site-footer span {
    color: #38bdf8 !important;
} */

/* =========================================
   SEARCH PAGE INFO HEADER
   ========================================= */
.search-info-header {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid var(--yale-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-info-header h3 {
    font-size: 22px;
    color: var(--yale-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.search-info-header h3 span {
    color: #e11d48;
    /* Highlight color */
}

.search-info-header p {
    color: #64748b;
    font-size: 15px;
}

body.dark-theme .search-info-header {
    background: #0b1426;
    border-color: #38bdf8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .search-info-header h3 {
    color: #f1f5f9;
}

body.dark-theme .search-info-header p {
    color: #94a3b8;
}

/* Pagination Wrapper Styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-link.num {
    width: 42px;
    height: 42px;
    padding: 0;
}

.page-link.active {
    background: var(--yale-blue);
    color: #ffffff;
    border-color: var(--yale-blue);
}

.page-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--yale-blue);
}

.page-link.prev-next {
    gap: 8px;
}

body.dark-theme .page-link {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-theme .page-link.active {
    background: #38bdf8;
    color: #0b1426;
    border-color: #38bdf8;
}

body.dark-theme .page-link:hover:not(.active) {
    background: #334155;
    color: #ffffff;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .page-numbers {
        order: 2;
    }

    .page-link.prev-next {
        width: 100%;
        max-width: 200px;
    }
}

/* --- Mobile Obituary Slider --- */
.news-slider-section {
    position: relative;
    padding: 0;
    margin: 20px 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    padding: 20px 10px 40px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slider-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slider-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 15px !important;
}

.slider-content {
    width: 100%;
}

.slider-title {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.slider-title a {
    text-decoration: none;
    color: inherit;
}

.slider-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: var(--yale-blue);
    color: #fff;
}

.slider-arrow.left {
    left: 5px;
}

.slider-arrow.right {
    right: 5px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--yale-blue);
    width: 20px;
    border-radius: 4px;
}

/* --- Premium Floating Contact Button (Desktop Only) --- */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--yale-blue), #005a9e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(7, 69, 117, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: fixed;
    animation: contactPulse 2s infinite;
}

.floating-contact i {
    font-size: 26px;
    transition: transform 0.4s ease;
}

.floating-contact:hover {
    transform: scale(1.1) rotate(15deg);
    background: linear-gradient(135deg, #005a9e, var(--yale-blue));
    box-shadow: 0 15px 35px rgba(7, 69, 117, 0.5);
    color: white;
    animation: none;
    /* Stop pulsing on hover */
}

.floating-contact:hover i {
    transform: scale(1.2);
}

/* Stylish Tooltip on Hover */
.floating-contact::before {
    /* content: "தொடர்புக்கு"; */
    position: absolute;
    right: 80px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-contact:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes contactPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(7, 69, 117, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(7, 69, 117, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(7, 69, 117, 0);
    }
}

/* Hide on mobile view */
@media screen and (max-width: 768px) {
    .floating-contact {
        display: none !important;
    }
}
