

/* Global styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1220;
    background-color: #f5f7fb;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-stagger {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-stagger:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger:nth-child(6) { animation-delay: 0.6s; }
.animate-stagger:nth-child(7) { animation-delay: 0.7s; }
.animate-stagger:nth-child(8) { animation-delay: 0.8s; }

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

/* Testimonial Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-card.animate-fly-in {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card:nth-child(even) {
    transform: translateX(50px);
}

.testimonial-card:nth-child(even).animate-fly-in {
    transform: translateX(0);
}

/* Legacy slider styles for backward compatibility */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    color: #1d4ed8;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-btn.prev {
    left: 1rem;
}

.testimonial-nav-btn.next {
    right: 1rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #1d4ed8;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .testimonial-nav-btn.prev {
        left: 0.5rem;
    }
    
    .testimonial-nav-btn.next {
        right: 0.5rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Partnership Cards */
.partnership-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partnership-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.partnership-card img {
    transition: transform 0.3s ease;
}

.partnership-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partnership-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partnership-card {
        margin-bottom: 0;
    }
}

/* Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .leadership-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.leader-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 360px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.leader-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.leader-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Ensure consistent card height on mobile */
@media (max-width: 767px) {
    .leader-card {
        height: 360px;
    }
    
    .leader-img {
        height: 230px;
        padding: 0.75rem;
    }
}

.leader-info {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}

.leader-name {
    font-weight: 700;
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.4;
}

.leader-title {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-card {
        height: auto;
        min-height: 360px;
    }
}

/* Diplomatic Elite Section Responsive */
@media (max-width: 768px) {
    .section .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .section .container > div[style*="grid-template-columns: 1fr 1fr"] img {
        max-width: 100%;
        height: auto;
    }
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #020617, #0f172a);
    color: #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: #020617;
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.brand-subtitle {
    font-weight: 500;
    font-size: 0.8rem;
    color: #a5b4fc;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #60a5fa;
}

.nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: #e5e7eb;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    border-color: #38bdf8;
    color: #bfdbfe;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    color: #38bdf8;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-small:hover {
    background: #38bdf8;
    color: #020617;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a,
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: #bfdbfe;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

/* Nested dropdown (Awards & Honours) */
.nav-subdropdown {
    position: relative;
}

.nav-subdropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.nav-subdropdown .dropdown-arrow {
    font-size: 0.8em;
}

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

.nav-subdropdown:hover > .nav-submenu,
.nav-subdropdown:focus-within > .nav-submenu,
.nav-subdropdown.active > .nav-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-submenu a {
    padding-left: 1.75rem;
}

.nav-subdropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > a,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        border: none;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 0;
        box-shadow: none;
        padding: 0 1rem;
        transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
        width: 100%;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 0.5rem 1rem;
    }
    
    .nav-dropdown-menu li {
        text-align: center;
    }
    
    .nav-dropdown-menu a {
        padding: 0.5rem 0;
        text-align: center;
        justify-content: center;
    }

    .nav-subdropdown {
        text-align: center;
    }

    .nav-submenu {
        padding: 0;
    }

    .nav-subdropdown.active .nav-submenu {
        max-height: 300px;
        padding: 0.25rem 0 0.5rem;
    }

    .nav-submenu a {
        padding-left: 0;
    }
}

/* Hero */
.hero {
    height: 85vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hero-slider {
    height: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
    cursor: grab;
}

.hero-slider:active {
    cursor: grabbing;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(30, 58, 138, 0.65) 100%);
    z-index: 1;
}

.hero-slide.no-overlay::after {
    background: rgba(2, 6, 23, 0.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-overlay p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #e0e7ff;
    margin-bottom: 1.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #38bdf8;
    border-color: #38bdf8;
    width: 32px;
    border-radius: 6px;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: rgba(56, 189, 248, 0.8);
    border-color: #38bdf8;
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev {
    left: 1.5rem;
}

.hero-nav-btn.next {
    right: 1.5rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: #e5f0ff;
}

.bg-accent {
    background: linear-gradient(135deg, #0f172a, #082f49);
    color: #e5e7eb;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #020617;
}

.bg-accent h2 {
    color: #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.link-more {
    font-size: 0.9rem;
    color: #2563eb;
}

.about p {
    max-width: 780px;
    color: #4b5563;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
}

.bg-light .card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-image.placeholder {
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.card-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

/* Contact Forms */
.contact-form {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15) !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .contact-form {
        margin-bottom: 2rem;
    }
}

.card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.card-body p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.card-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.profile-card {
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* New Member Card Design - Global Consistency */
.member-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.member-card-new,
.profile-card.member-card-new {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-card-new:hover,
.profile-card.member-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-card-image {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card-new:hover .member-card-image img,
.profile-card.member-card-new:hover .member-card-image img {
    transform: scale(1.05);
}

.member-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.5) 70%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: #ffffff;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
}

.member-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.member-card-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-card-role {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e7ff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-card-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .member-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .member-cards-grid {
        grid-template-columns: 1fr;
    }
    .member-card-image {
        height: 300px;
    }
}

.profile-card .card-body {
    text-align: center;
}

.avatar {
    padding-top: 1.25rem;
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #38bdf8;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    margin: 0 auto;
}

.muted {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Donation */
.donation-box {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0 1.75rem;
    background: rgba(15, 23, 42, 0.6);
}

.donation-box p {
    margin: 0.25rem 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #cbd5f5;
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #e5e7eb;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.btn-light {
    background: #e5e7eb;
    color: #020617;
}

/* Tables / grids for listing pages */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    text-align: left;
    background: #e5f0ff;
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    background: linear-gradient(135deg, #000000, #0a0a1a, #1e3a8a);
    color: #e5e7eb;
    padding-top: 2.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.footer-brand-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand .brand-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0;
}

.footer-brand .brand-subtitle {
    font-size: 0.85rem;
    color: #a5b4fc;
    margin: 0;
}

.footer-brand .brand-tagline {
    font-size: 0.8rem;
    color: #60a5fa;
    margin: 0;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #bfdbfe;
}

.footer-contact-content {
    text-align: left;
}

@media (max-width: 900px) {
    .footer-contact-content {
        text-align: center;
    }
}

.footer-contact a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-social ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social li {
    margin-bottom: 0.35rem;
}

.footer-social a {
    font-size: 0.9rem;
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #38bdf8;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-icons a {
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: rgba(255,255,255,0.15);
    color: #38bdf8;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    margin-top: 1.75rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #bfdbfe;
}

.footer-bottom a {
    color: #60a5fa;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Responsive utility classes (Bootstrap-like) */
.d-lg-none {
    display: block;
}

.d-none {
    display: none;
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-none.d-lg-block {
        display: block !important;
    }
}

/* Admin layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #0b1120;
    color: #e5e7eb;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Admin Header (Mobile) */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #020617, #020817, #0b1120);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 100%;
}

.admin-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    flex-shrink: 0;
}

.admin-header-title {
    display: flex;
    flex-direction: column;
}

.admin-header-title-main {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e5e7eb;
    line-height: 1.2;
}

.admin-header-title-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.2;
}

.admin-nav-wrapper {
    position: relative;
}

.admin-nav-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.admin-nav-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.admin-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

@media (max-width: 991px) {
    .admin-header-inner {
        padding: 0.75rem 1rem;
    }
    
    .admin-nav-toggle {
        display: block;
    }
    
    .admin-nav {
        position: absolute;
        right: 0;
        top: 100%;
        background: linear-gradient(180deg, #020617, #020817, #0b1120);
        flex-direction: column;
        padding: 0.75rem 1rem;
        width: 220px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .admin-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .admin-nav li {
        width: 100%;
    }
    
    .admin-nav a {
        width: 100%;
        padding: 0.65rem 0.75rem;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem;
    }
}

/* Admin Sidebar (Desktop) */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #020617, #020817, #0b1120);
    padding: 1.5rem 1rem;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.55);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    flex-shrink: 0;
}

.admin-sidebar-title {
    display: flex;
    flex-direction: column;
}

.admin-sidebar-title-main {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e5e7eb;
    line-height: 1.2;
}

.admin-sidebar-title-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.2;
}

.admin-sidebar-nav {
    margin-top: 1rem;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-menu li {
    margin-bottom: 0.5rem;
}

.admin-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: #ffffff;
}

.menu-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
}

.admin-main {
    flex: 1;
    padding: 1.5rem 2rem;
    margin-left: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 55%),
                radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.15), transparent 55%),
                #020617;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .admin-main {
        margin-left: 260px;
    }
}

.admin-main h1 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.admin-card + .admin-card {
    margin-top: 1.5rem;
}

/* Auth */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.4), transparent 55%),
                radial-gradient(circle at bottom, rgba(6, 182, 212, 0.35), transparent 55%),
                #020617;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.auth-card h1 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.auth-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.auth-card .form-group input {
    background: rgba(15, 23, 42, 0.85);
    border-color: #1f2937;
    color: #e5e7eb;
}

.auth-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.flash {
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.flash.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.flash.success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.7);
    color: #bbf7d0;
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner {
        padding: 0.5rem 0;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%;
        background: #020617;
        flex-direction: column;
        padding: 0.75rem 1rem;
        width: 220px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .footer-contact,
    .footer-social {
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    .admin-body {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .hero-nav-btn.prev {
        left: 0.5rem;
    }
    .hero-nav-btn.next {
        right: 0.5rem;
    }
    .hero-overlay {
        padding: 0 1.5rem;
    }
}

@media (max-width: 900px) {
    .about-grid,
    .mission-grid,
    .excellence-grid {
        grid-template-columns: 1fr !important;
    }
    .about-grid > div:first-child,
    .excellence-grid > div:first-child {
        order: 2;
    }
    .about-grid > div:last-child,
    .excellence-grid > div:last-child {
        order: 1;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    .section {
        padding: 3rem 0;
    }
    .hero-controls {
        bottom: 1rem;
    }
    .hero-nav-btn {
        display: none;
    }
}


