/* Reverting to the original style as requested by the user */

/* Base Styles & CSS Variables (Light Theme) */
:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #0284c7;
    --accent-hover: #0369a1;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(248, 250, 252, 0.85);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 3rem;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0;
    /* Shrink padding slightly on scroll */
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Reduced gap to prevent overflow */
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    /* Slightly smaller font */
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    white-space: nowrap;
    /* Prevent "Contact Me" from breaking */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-primary);
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: url('assets/hero.jpeg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.88);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 2rem auto;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: var(--transition);
}

.profile-container:hover {
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.15);
    border-color: var(--accent-color);
}

.profile-container:hover .profile-pic {
    transform: scale(1.18);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.hero-university {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Page Hero (for sub-pages) */
.page-hero {
    padding: 13rem 5% 9rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 25%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero.has-bg {
    color: #fff;
}

.page-hero.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    /* Dark overlay for readability */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero.has-bg h1 {
    color: #fff;
}

.page-hero.has-bg p {
    color: rgba(255, 255, 255, 0.9);
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.stat-box h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Grid Layouts (Research, Resources, Events) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0;
    /* Changed to 0 to let image take full width */
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    overflow: hidden;
    /* Ensure image corners are rounded */
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .btn {
    margin-top: auto;
    align-self: center;
}

.card h3,
.card p,
.card-icon {
    padding: 0 2rem;
}

.card h3 {
    margin-top: 1.5rem;
}

.card p {
    margin-bottom: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-top: -1.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin-top: -1rem;
        margin-left: 1rem;
    }
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.08);
}

.testimonial-card {
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    background: #fff;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Special Cards */
.featured-card-horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

@media (max-width: 768px) {
    .featured-card-horizontal {
        flex-direction: column;
    }

    .featured-card-horizontal img {
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
    }
}

/* Book Specific Styles */
.book-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.book-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.book-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.book-img {
    height: 320px;
    object-fit: contain;
    background: #f8fafc;
    /* Subtle contrast background for the book cover */
    padding: 1.5rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--card-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.timeline-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.timeline-poster-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    display: block;
}

.timeline-content h3,
.timeline-content p {
    padding: 1rem 2rem;
}

.timeline-content p:last-child {
    padding-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.03) 0%, transparent 40%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

.info-icon {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: rotate(10deg);
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.info-text p,
.info-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-socials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid var(--card-border);
    padding: 3rem 5%;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 21px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 7rem 5% 4rem;
        min-height: 40vh;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Fix the specific issue in the screenshot */
    .instruction-header h2,
    .publications-preview h2 {
        font-size: 1.6rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .instruction-header h2 {
        font-size: 1.5rem !important;
    }

    .instruction-card {
        padding: 1.5rem !important;
    }

    .books-checklist {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    /* Floating Bar Mobile Optimization */
    #selection-bar {
        padding: 1rem 5% !important;
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    #selection-bar button {
        width: 100% !important;
        padding: 0.8rem !important;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 2001;
    transition: var(--transition);
    border: 2px solid #fff;
}

.floating-whatsapp i {
    font-size: 1.5rem;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

/* Move button up when selection bar is visible */
#selection-bar:not([style*="bottom: -100px"])~.floating-whatsapp,
body:has(#selection-bar:not([style*="bottom: -100px"])) .floating-whatsapp {
    bottom: 120px;
}

@media (max-width: 768px) {
    .floating-whatsapp span {
        display: none;
    }

    .floating-whatsapp {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }

    #selection-bar:not([style*="bottom: -100px"])~.floating-whatsapp,
    body:has(#selection-bar:not([style*="bottom: -100px"])) .floating-whatsapp {
        bottom: 180px !important;
    }
}

/* Admin Dashboard Styles */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .admin-nav {
        padding: 1rem;
    }

    .nav-title {
        font-size: 1rem;
    }

    .btn-logout {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem;
    }

    .dashboard-container {
        margin: 1rem auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .admin-card {
        padding: 1.5rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-box {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    font-size: 1.2rem;
    margin: 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-card.no-padding {
    padding: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    margin: 0;
}

.stat-value.success {
    color: #22c55e;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .tab-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .btn-tab {
        width: 100%;
        padding: 0.5rem 1rem !important;
    }

    .btn-refresh {
        width: 100%;
    }
}

.tab-group {
    display: flex;
    gap: 1rem;
}

.table-container {
    background: #fff;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
    /* Force scroll on small screens */
}

.admin-table th {
    background: #f8fafc;
    padding: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #edf2f7;
}

.admin-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #fcfdfe;
}

.whatsapp-btn {
    background: #25d366;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 5rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-logout {
    padding: 0.5rem 1.5rem;
}

.btn-tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-refresh {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-complete {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    background: #22c55e !important;
    border-color: #22c55e !important;
}

.btn-receipt {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

.td-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.td-books {
    max-width: 250px;
    font-size: 0.85rem;
}

.td-amount {
    font-weight: 600;
    color: var(--accent-color);
}

.customer-info small {
    color: var(--text-secondary);
}

.error-message {
    color: #ef4444;
    padding: 2rem;
    text-align: center;
    font-weight: 500;
}

/* Order Instructions Section */
.order-instructions {
    background: #f8fafc;
    padding: 4rem 5%;
}

.instruction-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(2, 132, 199, 0.08);
}

.instruction-header h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.instruction-header p {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.instruction-step h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.instruction-step p,
.instruction-step .detail-list {
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-list {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.instruction-footer-grid {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box h3 i {
    color: var(--accent-color);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.check-list i {
    color: #22c55e;
    margin-top: 3px;
}

.support-contact {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-contact i {
    color: #25d366;
}

@media (max-width: 768px) {
    .instruction-card {
        padding: 2rem 1.5rem;
    }

    .instruction-footer-grid {
        gap: 2rem;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Resource Card Special */
.resource-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* YouTube Short (Vertical Video) Specific Styling */
.video-container.short {
    padding-top: 177.78%; /* Strict 9:16 aspect ratio for YouTube Shorts */
    max-width: 360px;
    margin: 1rem auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Homepage Events Grid (Forces all posters & featured card into one row on desktop) */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 576px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print Styles for Admin Report */
@media print {

    /* Hide everything except the formal report */
    body * {
        visibility: hidden;
    }

    #print-report,
    #print-report * {
        visibility: visible;
    }

    #print-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
        padding: 0;
        display: block !important;
    }

    .print-only {
        display: block !important;
    }

    .report-header {
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }

    .report-header h1 {
        font-size: 24pt;
        margin: 0;
    }

    .report-section {
        margin-bottom: 2rem;
        break-inside: avoid;
    }

    .report-section h3 {
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .report-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
    }

    .report-table th,
    .report-table td {
        border: 1px solid #ddd;
        padding: 8pt;
        text-align: left;
        font-size: 10pt;
    }

    .report-table th {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
    }

    .report-footer {
        margin-top: 3rem;
        text-align: center;
        font-size: 9pt;
        color: #777;
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
}

.print-only {
    display: none;
}