/* ==========================================================================
   Dr. Selva's Personal Website - Modern Dark Academic Theme
   ========================================================================== */

/* Design Tokens & System Variables */
:root {
    --bg-primary: #0a1c33;      /* Deep Oxford Blue (Dark sections) */
    --bg-secondary: #f4f7fa;    /* Light Slate Gray (Light sections) */
    --bg-card: #122640;         /* Card Background (Dark sections) */
    --bg-card-light: #ffffff;   /* Card Background (Light sections) */
    --accent-gold: #d4af37;     /* Academic Gold */
    --accent-gold-hover: #f3cf5a;
    --accent-coral: #fd5308;    /* Action Accent (Orange/Coral) */
    --accent-coral-hover: #ff7333;
    
    --text-primary: #ffffff;    /* Primary White Text (Dark sections) */
    --text-secondary: #a0aec0;  /* Secondary Muted Text (Dark sections) */
    --text-gold: #e2c055;       /* Warm Gold Text (Dark sections) */
    --text-light-theme: #0f1a2c; /* Text for Light sections */
    --text-muted-light-theme: #4e5d78; /* Muted text for Light sections */
    
    --border-color: #1a2e54;    /* Fine Borders (Dark sections) */
    --border-light: #e1e7f0;    /* Fine Borders (Light sections) */
    --border-gold: rgba(212, 175, 55, 0.3);
    
    --card-shadow: 0 10px 30px -10px rgba(10, 28, 51, 0.5);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helper spacing utilities */
.margin-top-30 {
    margin-top: 30px;
}

/* Global Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000000;
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    border: 1px solid #25d366;
}

.btn-whatsapp:hover {
    background-color: #20ba56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Title Headers */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    color: #ffffff;
}

.title-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0.5rem auto 0;
}

.section-lead-desc {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(2, 11, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo a {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-gold);
    letter-spacing: -0.03em;
}

.navbar {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px; /* Offset for header */
    background: radial-gradient(circle at 10% 20%, rgba(2, 11, 28, 1) 0%, rgba(8, 19, 41, 1) 90%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

.hero-text {
    z-index: 2;
}

.badge-title {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-name {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--text-gold);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.motto-box {
    border-left: 3px solid var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.03);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 4px 4px 0;
}

.motto-text {
    font-style: italic;
    color: #e2e8f0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

.image-border-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
    box-shadow: var(--gold-glow);
}

/* Stats Counter Bar */
.stats-counter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-card);
}

.stat-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background-color: var(--bg-card);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.bio-text-column h3, .expertise-column h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.bio-text-column p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.education-block {
    margin-top: 2.5rem;
}

.education-block h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-list li {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
}

.edu-list li i {
    color: var(--accent-gold);
    margin-top: 0.3rem;
    font-size: 1.1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.cert-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.cert-card i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.cert-card h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Accordions for Expertise */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background-color: rgba(212, 175, 55, 0.02);
}

.accordion-header span {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accordion-header span i {
    color: var(--accent-gold);
}

.accordion-header i.fa-chevron-down {
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: rgba(2, 11, 28, 0.2);
}

.accordion-content p {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

.accordion-item.active {
    border-color: var(--accent-gold);
}

.accordion-item.active .accordion-header i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Journey / Experience Section */
.experience-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-gold);
    top: 2.8rem;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--text-gold);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Expandable Timeline details */
.timeline-expandable-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.timeline-expandable-btn:hover {
    color: var(--accent-gold-hover);
}

.timeline-expandable-btn i {
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.timeline-expandable-btn.active i {
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: left;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.timeline-details ul {
    list-style-type: square;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-details ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.timeline-details ul li strong {
    color: #ffffff;
}

/* Responsive timeline styles */
@media (max-width: 900px) {
    .timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 2rem;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 22px !important;
        right: auto !important;
    }
}

/* Publications Section */
.publications-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
    box-shadow: var(--gold-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Books Grid & Book Card Design */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.book-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px 8px 8px 4px;
    display: flex;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    min-height: 280px;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.book-spine {
    width: 14px;
    background: linear-gradient(90deg, #102044 0%, #1e3a75 50%, #0d1a38 100%);
    border-radius: 3px 0 0 3px;
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.book-body {
    flex: 1;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
}

.book-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    display: block;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.book-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: auto; /* Push metadata to bottom */
}

.book-metadata {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.book-metadata strong {
    color: #ffffff;
}

/* Books In Progress Styles */
.progress-info-alert {
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-gold);
    padding: 1.2rem 2rem;
    border-radius: 4px;
    color: #e2e8f0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-info-alert i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.progress-books-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.progress-book-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.progress-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 1;
}

.progress-text h5 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.progress-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Journal Articles list */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.article-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.article-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.article-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.article-journal {
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.article-date {
    color: var(--text-secondary);
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.article-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Conference Papers grid */
.proceedings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.proc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
}

.proc-location {
    font-size: 0.85rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.proc-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.proc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Keynotes & Visiting Database Section */
.db-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.db-controls {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.search-box-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1rem;
}

#db-search {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1rem 1rem 3rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

#db-search:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
}

/* Database grid results */
.db-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-height: 400px;
}

.db-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.db-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.db-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.db-type-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
}

/* Color variations for search result types */
.db-card.type-visiting .db-type-badge {
    background-color: rgba(37, 211, 102, 0.08);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.db-card.type-keynote .db-type-badge {
    background-color: rgba(253, 83, 8, 0.08);
    color: #ff8a5c;
    border: 1px solid rgba(253, 83, 8, 0.2);
}

.db-card.type-conference .db-type-badge {
    background-color: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.db-year-badge {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.db-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.db-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto; /* Push locations/details down */
}

.db-location {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-location i {
    color: var(--accent-gold);
}

.no-results-msg {
    grid-column: span 2;
    text-align: center;
    padding: 5rem 0;
    color: var(--text-secondary);
}

.no-results-msg i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.page-num:hover, .page-num.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
}

/* Memberships, Travel & Gallery */
.memberships-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
}

.memberships-list-card, .entourage-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem;
}

.memberships-list-card h3, .entourage-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    color: #ffffff;
}

.scrollable-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Custom Scrollbar */
.scrollable-list::-webkit-scrollbar {
    width: 5px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.list-item i {
    color: var(--accent-gold);
    margin-top: 0.3rem;
}

.list-item strong {
    color: #ffffff;
}

.travel-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.travel-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.travel-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1.5rem;
}

.travel-timeline-item span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    text-align: center;
    padding: 0.3rem 0;
    border-radius: 4px;
    font-size: 0.85rem;
}

.travel-timeline-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Awards Strip */
.awards-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.award-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border: 1px solid var(--border-gold);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.award-item i {
    font-size: 3rem;
    color: var(--accent-gold);
}

.award-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.award-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery Styles & Filter Navigation */
.gallery-title-bar {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-title-bar h3 {
    font-size: 1.8rem;
    color: #ffffff;
}

.gallery-title-bar p {
    color: var(--text-secondary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
    box-shadow: var(--gold-glow);
}

.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-card-new {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 240px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.gallery-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(2, 11, 28, 0.95) 10%, rgba(2, 11, 28, 0.4) 60%, rgba(2, 11, 28, 0.1) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.gallery-card-category {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.gallery-card-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.gallery-card-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.gallery-zoom-btn {
    background-color: var(--accent-gold);
    color: #000000;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    cursor: pointer;
}

.gallery-card-new:hover img {
    transform: scale(1.06);
}

.gallery-card-new:hover .gallery-card-overlay {
    opacity: 1;
    border-color: var(--accent-gold);
}

/* Lightbox Modal System */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(2, 11, 28, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.lightbox-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 2rem;
    z-index: 2002;
    transition: var(--transition-smooth);
}

.lightbox-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2001;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.15s ease;
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: #ffffff;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-size: 1.3rem;
    color: var(--text-gold);
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.lightbox-index-indicator {
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Referees & Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.ref-section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.referees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.ref-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.ref-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.ref-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-gold);
}

.ref-title {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.ref-inst {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ref-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.ref-contacts i {
    color: var(--accent-gold);
    width: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
}

.contact-form-card, .quick-contacts-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem;
}

.contact-form-card h3, .quick-contacts-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: var(--accent-coral);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-top: 0.2rem;
    width: 30px;
    text-align: center;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.contact-info-item a:hover {
    color: var(--accent-gold);
}

/* Footer styling */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}

.main-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-design {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.15) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-desc, .motto-box {
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-counter-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .db-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .referees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .logo a {
        font-size: 1.4rem;
    }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .navbar.mobile-active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .stats-counter-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-books-list {
        grid-template-columns: 1fr;
    }
    
    .proceedings-grid {
        grid-template-columns: 1fr;
    }
    
    .db-results {
        grid-template-columns: 1fr;
    }
    
    .memberships-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-strip {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-new {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-counter-bar {
        grid-template-columns: 1fr;
    }
    
    .referees-grid {
        grid-template-columns: 1fr;
    }
    
    .travel-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Light Section Color Overrides & Academic Print Contrast
   ========================================================================== */

.about-section, .publications-section, .memberships-section {
    background-color: var(--bg-secondary);
    color: var(--text-light-theme);
}

.about-section .section-title, 
.publications-section .section-title, 
.memberships-section .section-title {
    color: var(--text-light-theme);
}

.about-section p, 
.about-section li,
.publications-section p, 
.publications-section .book-subtitle,
.publications-section .progress-text p,
.publications-section .proc-card p,
.publications-section .article-details,
.memberships-section p,
.memberships-section .list-item,
.memberships-section .travel-intro {
    color: var(--text-muted-light-theme) !important;
}

.about-section h3, .about-section h4,
.publications-section h3, .publications-section h4,
.memberships-section h3, .memberships-section h4,
.memberships-section .gallery-title-bar h3 {
    color: var(--text-light-theme) !important;
    border-color: var(--border-light) !important;
}

/* Cards Styling in Light Sections */
.about-section .cert-card,
.about-section .accordion-item,
.publications-section .book-card,
.publications-section .progress-book-item,
.publications-section .proc-card,
.publications-section .article-item,
.memberships-section .memberships-list-card,
.memberships-section .entourage-card {
    background-color: var(--bg-card-light) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 4px 20px rgba(10, 28, 51, 0.05) !important;
    color: var(--text-light-theme) !important;
}

.about-section .cert-card:hover,
.publications-section .book-card:hover,
.publications-section .progress-book-item:hover,
.publications-section .proc-card:hover,
.publications-section .article-item:hover,
.memberships-section .memberships-list-card:hover,
.memberships-section .entourage-card:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 30px rgba(10, 28, 51, 0.08) !important;
}

/* Specific elements overrides */
.about-section .accordion-header {
    color: var(--text-light-theme) !important;
}

.about-section .accordion-content {
    background-color: rgba(10, 28, 51, 0.02) !important;
}

.about-section .accordion-content p {
    border-color: var(--border-light) !important;
}

.publications-section .book-title {
    color: var(--text-light-theme) !important;
}

.publications-section .book-metadata {
    border-color: var(--border-light) !important;
    color: var(--text-muted-light-theme) !important;
}

.publications-section .book-metadata strong {
    color: var(--text-light-theme) !important;
}

.publications-section .progress-number {
    opacity: 0.15 !important;
}

.publications-section .progress-book-item h5 {
    color: var(--text-light-theme) !important;
}

.publications-section .tab-btn {
    background-color: var(--bg-card-light);
    color: var(--text-muted-light-theme);
    border-color: var(--border-light);
}

.publications-section .tab-btn:hover,
.publications-section .tab-btn.active {
    background-color: var(--accent-gold) !important;
    color: #000000 !important;
    border-color: var(--accent-gold) !important;
}

.publications-section .article-journal {
    color: #b8860b !important; /* Deep Gold for light backgrounds */
}

.publications-section .article-date {
    color: var(--text-muted-light-theme) !important;
}

.publications-section .article-title {
    color: var(--text-light-theme) !important;
}

.memberships-section .scrollable-list {
    /* light scrollbar */
}

.memberships-section .scrollable-list::-webkit-scrollbar-track {
    background: var(--bg-secondary) !important;
}

.memberships-section .scrollable-list::-webkit-scrollbar-thumb {
    background: var(--border-light) !important;
}

.memberships-section .list-item strong {
    color: var(--text-light-theme) !important;
}

.memberships-section .travel-timeline-item span {
    background-color: rgba(10, 28, 51, 0.05) !important;
    border-color: var(--border-light) !important;
    color: var(--text-light-theme) !important;
}

.memberships-section .travel-timeline-item p {
    color: var(--text-muted-light-theme) !important;
}

/* Dynamic Gallery Card Overrides in Light Section */
.memberships-section .gallery-card-new {
    border-color: var(--border-light) !important;
}

.memberships-section .gallery-filter-btn {
    background-color: var(--bg-card-light);
    color: var(--text-muted-light-theme);
    border-color: var(--border-light);
}

.memberships-section .gallery-filter-btn:hover,
.memberships-section .gallery-filter-btn.active {
    background-color: var(--accent-gold) !important;
    color: #000000 !important;
    border-color: var(--accent-gold) !important;
}

/* ==========================================================================
   Scroll Reveal Animations & Hover Zoom
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hover Zoom effects for cards and gallery items */
.gallery-card-new img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.book-card, .progress-book-item, .cert-card, .proc-card, .article-item, .ref-card, .db-card, .stat-card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.book-card:hover, .progress-book-item:hover, .cert-card:hover, .proc-card:hover, .article-item:hover, .ref-card:hover, .db-card:hover, .stat-card:hover {
    transform: translateY(-5px) !important;
}

/* ==========================================================================
   Gallery Slider & Carousel Layout (Desktop: 12-grids slide, Mobile: 1-item slide)
   ========================================================================== */
.gallery-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-slider-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.gallery-slide-page {
    flex: 0 0 100%;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Desktop Grid: 12 images per page (4 columns x 3 rows) */
@media (min-width: 992px) {
    .gallery-slide-page {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 1.5rem;
    }
}

/* Medium Tablets: 6 images per page (3 columns x 2 rows) */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-slide-page {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1.2rem;
    }
}

/* Mobile Layout: 1 image per page slider */
@media (max-width: 767px) {
    .gallery-slide-page {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 320px;
    }
    
    .gallery-slide-page .gallery-card-new {
        width: 100%;
        max-width: 380px;
        height: 100%;
    }
}

.gallery-slider-nav {
    background-color: var(--bg-card-light) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-light-theme) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(10, 28, 51, 0.08);
}

.gallery-slider-nav:hover {
    background-color: var(--accent-gold) !important;
    color: #000000 !important;
    border-color: var(--accent-gold) !important;
    box-shadow: var(--gold-glow) !important;
}

.gallery-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-dot.active {
    background-color: var(--accent-gold) !important;
    transform: scale(1.3);
    box-shadow: var(--gold-glow);
}


