@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #fcfbf9;
    --secondary-color: #ffffff;
    --accent-color: #d4af37; /* Richer Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-main);
    /* Animated mesh gradient for a divine, ethereal feel */
    background: linear-gradient(
        120deg,
        #fdfbfb 0%,
        #f3e6e8 25%,
        #e3eeff 50%,
        #fdfbfb 100%
    );
    background-size: 300% 300%;
    animation: divineGlow 20s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes divineGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 1000;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0,0,0,0.03);
    overflow-y: auto;
}

.navbar.open {
    transform: translateX(0);
}

.nav-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1001;
    background: var(--secondary-color);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    color: var(--accent-color);
    font-size: 1.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.nav-links {
    list-style: none;
    margin-top: 3rem;
}
.nav-links li {
    margin-bottom: 1.2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.15rem;
    padding: 12px 20px;
    display: block;
    border-radius: 12px;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: translateX(5px);
}

/* Main Content Area */
main {
    padding: 2rem;
    padding-top: 6rem;
    max-width: 1300px;
    margin: 0 auto;
    transition: var(--transition);
}

/* Top Buttons */
.top-actions {
    position: absolute;
    top: 25px;
    right: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%);
    color: #5c4000;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px var(--accent-glow);
}

/* Floating Chatbot */
.chatbot-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    border: none;
}
.chatbot-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px var(--accent-glow);
}
.chatbot-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 5rem;
    text-align: center;
    animation: fadeUp 1s ease forwards;
}

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

#chamber-name {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, #d4af37, #997a00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0px 10px 30px rgba(212, 175, 55, 0.2);
}

.map-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}
.map-circle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 20px 45px var(--accent-glow);
    border-color: var(--accent-color);
}
.map-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Divine Card */
.divine-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 6rem;
    animation: fadeUp 1.2s ease forwards;
}

/* RESPONSIVE LAYOUT FOR DIVINE CARD */
.divine-card {
    display: flex;
    flex-direction: column; /* Mobile first: Stacked */
    align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 950px;
    width: 100%;
}

.video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.video-container:hover {
    transform: scale(1.02);
}
.video-container video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.message-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.message-container .bengali-text {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}
.message-container .english-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* Desktop layout for Divine Card */
@media (min-width: 800px) {
    .divine-card {
        flex-direction: row; /* Desktop: Side-by-side */
        text-align: left;
    }
    .video-container {
        flex: 1.2;
    }
    .message-container {
        flex: 1;
        padding-left: 2rem;
    }
}

/* Gallery */
.gallery-section {
    margin-bottom: 6rem;
    animation: fadeUp 1.4s ease forwards;
}
.gallery-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 700;
}
.slideshow-container {
    position: relative;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    background: var(--secondary-color);
    border: 8px solid var(--secondary-color);
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.8s ease-in-out, transform 10s ease; /* subtle zoom effect */
    object-fit: cover;
    transform: scale(1);
}
.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Schedule */
.schedule-section {
    margin-bottom: 6rem;
    animation: fadeUp 1.6s ease forwards;
}
.schedule-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 700;
}
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.schedule-table th, .schedule-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}
.schedule-table th {
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}
.schedule-table tr {
    transition: var(--transition);
}
.schedule-table tr:hover td {
    background: rgba(255, 255, 255, 0.3);
}
.schedule-table tr:last-child td {
    border-bottom: none;
}

.timing-standard {
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.timing-closed {
    font-style: italic;
    font-weight: normal;
    color: #f44336;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
}

/* Staff Page Styling */
.staff-hero {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}
.staff-hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.staff-section {
    margin-bottom: 5rem;
    animation: fadeUp 1.2s ease forwards;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 700;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.staff-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    align-items: center;
}

.staff-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-color), #fff9e6);
    box-shadow: 0 10px 25px var(--accent-glow);
}
.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.staff-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-name {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.staff-tenure {
    margin-bottom: 1.5rem;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-current {
    background: rgba(212, 175, 55, 0.15);
    color: #997a00;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-alumni {
    background: rgba(127, 140, 141, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(127, 140, 141, 0.3);
}

.staff-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
    position: relative;
    padding: 0 1rem;
}

.staff-desc::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-glow);
    position: absolute;
    top: -15px;
    left: -10px;
    font-family: serif;
}

.staff-footer {
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.staff-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: var(--transition);
}

.staff-contact-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Experience Page Styling */
.exp-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.exp-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--accent-color);
}

.exp-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.exp-card:hover .exp-image-container img {
    transform: scale(1.1);
}

.exp-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.exp-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.exp-heading {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.exp-category-badge {
    background: linear-gradient(135deg, var(--accent-color), #f3e5ab);
    color: #5c4000;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.exp-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.exp-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 1rem;
}

@media (min-width: 800px) {
    .exp-card {
        flex-direction: row;
        align-items: stretch;
    }
    .exp-card:nth-child(even) {
        flex-direction: row-reverse;
    }
    .exp-image-container {
        width: 45%;
        height: auto;
        min-height: 300px;
        border-bottom: none;
        border-right: 3px solid var(--accent-color);
    }
    .exp-card:nth-child(even) .exp-image-container {
        border-right: none;
        border-left: 3px solid var(--accent-color);
    }
    .exp-content {
        width: 55%;
        padding: 3rem;
        justify-content: center;
    }
}

/* Announcements Page Styling */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.announcement-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-glow);
}

.ann-date-container {
    background: linear-gradient(135deg, var(--accent-color), #d4af37);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.ann-month {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}
.ann-day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 5px 0;
}
.ann-year {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ann-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ann-heading {
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

.ann-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 800px) {
    .announcement-card {
        flex-direction: row;
    }
}

/* Toast Popup */
.toast-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--accent-glow);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 450px;
}

.toast-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toast-content h4 ion-icon {
    color: var(--accent-color);
    font-size: 1.4rem;
}
.toast-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-dismiss:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotate(90deg);
}

/* Unregister & Feedback Styling */
.unregister-link {
    display: block;
    text-align: center;
    color: #e74c3c;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}
.unregister-link:hover {
    color: #c0392b;
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin: 15px 0;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}
.feedback-textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.unreg-error-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

/* Contact Us Page Styling */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: row;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-radius: 100px; /* Test tube shape */
    height: 140px;
    align-items: center;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-glow);
}

.contact-image-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-color), #fff9e6);
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.contact-content {
    flex: 1;
    padding: 0 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading {
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-number {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-number:hover {
    color: #997a00;
    text-shadow: 0 5px 15px var(--accent-glow);
}

/* Alternating rows for the test tube cards */
.contact-card:nth-child(even) {
    flex-direction: row-reverse;
}

.contact-card:nth-child(even) .contact-content {
    text-align: right;
    align-items: flex-end;
}

@media (max-width: 600px) {
    .contact-card {
        flex-direction: column !important; /* Override alternating for mobile */
        height: auto;
        border-radius: 24px;
        padding: 2rem;
        gap: 1rem;
    }
    .contact-image-container {
        width: 120px;
        height: 120px;
    }
    .contact-card:nth-child(even) .contact-content {
        text-align: center;
        align-items: center;
    }
    .contact-content {
        text-align: center;
        align-items: center;
        padding: 0;
    }
}

/* Rules Accordion Styling */
#rules-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.accordion-item {
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-glow);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--accent-color);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.accordion-item.active .accordion-header {
    background: rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: var(--accent-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.02);
}

.rules-list {
    padding: 1.5rem 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.5;
}

.rule-icon {
    font-size: 1.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Premium Doctor Hero */
.doctor-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 1100px;
    margin: 4rem auto 2rem auto;
    gap: 4rem;
    padding: 0 2rem;
}

.doctor-hero-content {
    flex: 1;
}

.doctor-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.doctor-hero-content h1 span {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.doctor-hero-image {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
    border: 6px solid var(--accent-color);
    background: var(--bg-color);
    animation: morph 8s ease-in-out infinite;
    position: relative;
}

.doctor-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    pointer-events: none;
}

.doctor-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@media (max-width: 900px) {
    .doctor-hero {
        flex-direction: column-reverse;
        text-align: center;
        margin: 2rem auto;
        gap: 2rem;
    }
    .doctor-hero-content h1 {
        font-size: 2.8rem;
    }
    .doctor-hero-image {
        width: 260px;
        height: 260px;
    }
}

/* Registration Modal Styles */
.reg-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.reg-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.reg-modal {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.reg-modal-overlay.active .reg-modal {
    transform: translateY(0) scale(1);
}
.reg-modal h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}
.reg-modal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.reg-modal input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}
.reg-modal input:focus {
    outline: none;
    border-color: var(--accent-color);
}
.reg-modal button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}
.reg-btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: auto !important;
}
.reg-btn-close:hover {
    color: white;
}
.reg-success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    font-weight: 500;
}
.reg-resend-link {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    display: block;
    margin-top: 1rem;
}
.reg-timer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsive Adjustments for Mobile Typography and Layout */
@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    #chamber-name {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .map-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Bring all font sizes into control */
    .section-title, .gallery-section h2, .schedule-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .message-container .bengali-text {
        font-size: 1.5rem;
    }
    
    .message-container .english-text {
        font-size: 1rem;
    }

    .staff-name, .exp-heading, .ann-heading {
        font-size: 1.3rem;
    }

    .staff-desc, .exp-description, .ann-description {
        font-size: 0.95rem;
    }
}

/* Stunning Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0B0E14; /* Deep obsidian */
        --secondary-color: #151A22; /* Slightly lighter obsidian */
        --accent-color: #E6C27A; /* Softer, glowing gold */
        --accent-glow: rgba(230, 194, 122, 0.2);
        --text-main: #F0F2F5; /* Crisp off-white */
        --text-muted: #9BA3AF; /* Cool grey */
        --glass-bg: rgba(21, 26, 34, 0.65);
        --glass-border: rgba(255, 255, 255, 0.08);
        --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
        --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    }

    body {
        background: linear-gradient(
            120deg,
            #0B0E14 0%,
            #11161F 25%,
            #161D29 50%,
            #0B0E14 100%
        );
        background-size: 300% 300%;
        animation: divineGlow 20s ease infinite;
    }

    /* Specific overrides for hardcoded colors in light mode */
    .navbar {
        background: rgba(11, 14, 20, 0.85);
    }
    
    .schedule-table tr:hover td {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .toast-popup {
        background: rgba(21, 26, 34, 0.95);
    }
    
    .staff-contact-btn {
        background: rgba(255, 255, 255, 0.05);
    }

    .staff-contact-btn:hover {
        background: var(--accent-color);
        color: #0B0E14; /* Dark text on gold button for contrast */
    }

    #chamber-name {
        background: linear-gradient(to right, #E6C27A, #C29A4D);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0px 10px 30px rgba(230, 194, 122, 0.15);
    }

    .badge-current {
        background: rgba(230, 194, 122, 0.1);
        color: #E6C27A;
        border: 1px solid rgba(230, 194, 122, 0.3);
    }

    .badge-alumni {
        background: rgba(155, 163, 175, 0.1);
        color: var(--text-muted);
        border: 1px solid rgba(155, 163, 175, 0.2);
    }

    .btn-primary {
        background: linear-gradient(135deg, #E6C27A 0%, #F5DEB3 100%);
        color: #332400;
    }

    .staff-avatar {
        background: linear-gradient(135deg, var(--accent-color), #2A2F3A);
    }
    .staff-avatar img {
        border-color: var(--secondary-color);
    }
    
    .ann-date-container {
        background: linear-gradient(135deg, var(--accent-color), #C29A4D);
        color: #0B0E14;
    }
    
    .exp-category-badge {
        background: linear-gradient(135deg, var(--accent-color), #F5DEB3);
        color: #332400;
    }
}

/* Services Accordion Styling */
.services-section {
    margin-bottom: 6rem;
    animation: fadeUp 1.2s ease forwards;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 700;
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.services-section .accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.services-section .accordion-item:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-3px);
}

.services-section .accordion-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.services-section .accordion-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
    transition: var(--transition);
}

.services-section .accordion-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services-section .accordion-item.active .accordion-header h3 {
    color: var(--accent-color);
}

.services-section .accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.services-section .accordion-item.active {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.services-section .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services-section .accordion-inner {
    padding: 1.5rem 2rem 2rem 2.5rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services-section .accordion-inner::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.services-section .accordion-item.active .accordion-inner {
    opacity: 1;
    transform: translateY(0);
}

.services-section .accordion-item.active .accordion-inner::before {
    opacity: 1;
}

/* User Toast Notification */
.user-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-premium);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    border-left: 4px solid var(--accent-color);
}

.user-toast.show {
    transform: translateX(0);
}

.user-toast.success { border-left-color: #10b981; }
.user-toast.info { border-left-color: #3b82f6; }
