:root {
    --primary: #1e5f3f;
    --primary-dark: #154830;
    --secondary: #2c3e50;
    --accent: #4f46e5;
    --surface: #ffffff;
    --surface-muted: #f6f8fb;
    --text: #142133;
    --text-muted: #5f6c7b;
    --border: #e5ebf2;
    --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 18px 40px rgba(17, 24, 39, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 30%);
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary);
}

.header {
    position: sticky;
    top: 0;
    z-index: 999;
}

.modern-navbar {
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(20, 33, 51, 0.05);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text) !important;
}

.brand-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30, 95, 63, 0.14);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.02rem;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.navbar-nav .nav-link {
    margin: 0 0.35rem;
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.93rem;
    border-radius: 999px;
    padding: 0.45rem 0.9rem !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(30, 95, 63, 0.1);
}

.modern-navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 0.35rem;
}

.modern-navbar .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    padding: 0.48rem 0.75rem;
}

.modern-navbar .dropdown-item:hover,
.modern-navbar .dropdown-item:focus {
    color: var(--primary);
    background: rgba(30, 95, 63, 0.1);
}

.nav-cta {
    margin-left: 0.65rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: radial-gradient(circle at 10% 20%, rgba(30, 95, 63, 0.11), transparent 42%),
                radial-gradient(circle at 80% 0%, rgba(79, 70, 229, 0.08), transparent 42%),
                linear-gradient(160deg, #ffffff 0%, #f1f7f4 100%);
    border-bottom: 1px solid var(--border);
}

.hero-title {
    color: var(--text);
    margin-bottom: 0.7rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.3rem;
    max-width: 760px;
}

.hero-slider-section {
    padding: 0;
    overflow: hidden;
}

.hero-slider-section .carousel-indicators {
    bottom: 20px;
    gap: 0.55rem;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.hero-slider-section .carousel-indicators .active {
    opacity: 1;
    background: #ffd85b;
    box-shadow: 0 0 0 6px rgba(255, 216, 91, 0.2);
}

.hero-slide {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 95, 162, 0.4) 0%, rgba(255, 95, 162, 0) 68%);
    animation: floatGlow 9s ease-in-out infinite;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 85%, rgba(98, 216, 255, 0.36), transparent 34%),
                linear-gradient(120deg, rgba(21, 28, 56, 0.2), rgba(21, 28, 56, 0.55));
}

.slide-campus {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.6), rgba(63, 81, 181, 0.62));
}

.slide-academics {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.6), rgba(63, 81, 181, 0.62));
}

.slide-values {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.6), rgba(63, 81, 181, 0.62));
}

.slide-activities {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.6), rgba(63, 81, 181, 0.62));
}

.hero-caption {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-left: 4px solid rgba(255, 216, 91, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 52px rgba(6, 14, 37, 0.34);
    padding: 2rem 2.25rem;
    border-radius: 18px;
    max-width: 760px;
    margin-left: 1rem;
}

.slide-chip {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255, 216, 91, 0.22);
    border: 1px solid rgba(255, 216, 91, 0.5);
    color: #fff7cd;
    margin-bottom: 1rem;
}

.hero-caption h2,
.hero-caption p {
    color: #fff;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.34);
}

.hero-caption h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 0.8rem;
    line-height: 1.12;
}

.hero-caption p {
    font-size: 1.08rem;
    margin-bottom: 1.35rem;
    max-width: 640px;
}

.hero-caption .btn-light {
    background: linear-gradient(145deg, #ffffff, #ffe9a8);
    color: #2c2a1f;
    border: 0;
    box-shadow: 0 10px 22px rgba(30, 20, 10, 0.2);
}

.hero-caption .btn-light:hover {
    background: linear-gradient(145deg, #fff8dc, #ffd85b);
    color: #221d0f;
}

.carousel-item .slide-chip,
.carousel-item .hero-caption h2,
.carousel-item .hero-caption p,
.carousel-item .hero-caption .btn {
    opacity: 0;
    transform: translateY(28px);
}

.carousel-item.active .slide-chip {
    animation: captionUp 0.6s ease forwards;
}

.carousel-item.active .hero-caption h2 {
    animation: captionUp 0.72s ease 0.12s forwards;
}

.carousel-item.active .hero-caption p {
    animation: captionUp 0.72s ease 0.24s forwards;
}

.carousel-item.active .hero-caption .btn {
    animation: captionUp 0.72s ease 0.36s forwards;
}

.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 7%;
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(4px);
    background-size: 46%;
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(16px) scale(1.05);
    }
}

@keyframes captionUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 86px 0;
    border-bottom: 1px solid var(--border);
}

.section.bg-light {
    background: var(--surface-muted) !important;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    color: var(--text);
}

.section-title p {
    margin: 0;
}

.card,
.contact-card,
.quick-facts-card,
.map-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.card:hover,
.contact-card:hover,
.quick-facts-card:hover,
.map-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 95, 63, 0.24);
}

.card .card-body {
    padding: 1.45rem;
}

.card-title {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.feature-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: #fff;
    height: 100%;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.highlight-item {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.2rem;
}

.quick-facts-card {
    padding: 1.6rem;
}

.quick-facts-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-facts-card li {
    margin-bottom: 0.8rem;
    color: var(--text);
}

.quick-facts-card i {
    color: var(--primary);
    margin-right: 0.55rem;
}

.requirements-list,
.process-list,
.hours-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.35rem 0.9rem;
    box-shadow: var(--shadow-sm);
}

.requirement-item,
.hour-item,
.process-list li {
    margin-bottom: 1rem;
}

.process-list {
    padding-left: 2.2rem;
}

#map {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    background: #eef2f7 !important;
}

.contact-hero {
    background: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.12), transparent 36%),
                radial-gradient(circle at 100% 20%, rgba(30, 95, 63, 0.16), transparent 38%),
                linear-gradient(140deg, #ffffff 0%, #f4f8ff 100%);
}

.contact-hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.contact-quick-card,
.contact-detail-panel,
.contact-form-card,
.department-card,
.map-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.contact-quick-card {
    padding: 1.5rem;
    height: 100%;
}

.contact-quick-card:hover,
.contact-detail-panel:hover,
.contact-form-card:hover,
.department-card:hover,
.map-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 95, 63, 0.22);
}

.contact-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #2d7f59);
    box-shadow: 0 10px 18px rgba(30, 95, 63, 0.25);
}

.contact-quick-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.contact-quick-card p,
.contact-quick-card a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-quick-card a:hover {
    color: var(--primary);
}

.contact-detail-panel,
.contact-form-card,
.department-card {
    padding: 1.5rem;
}

.contact-detail-panel h3,
.contact-form-card h3,
.department-card h5 {
    margin-bottom: 1rem;
}

.contact-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}

.contact-detail-list li span {
    color: var(--text-muted);
}

.contact-detail-list li strong {
    color: var(--text);
    font-size: 0.93rem;
}

.contact-social-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.department-card p {
    margin-bottom: 0.65rem;
}

.map-wrap {
    padding: 0.5rem;
}

.map-wrap #map {
    border: 0 !important;
    border-radius: 12px !important;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.68rem 1.35rem;
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #287a54);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(30, 95, 63, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
}

.btn-secondary,
.btn-outline-light {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.btn-secondary:hover,
.btn-outline-light:hover {
    background: var(--primary);
    color: #fff;
}

.btn-light {
    color: var(--primary);
    font-weight: 700;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.74rem 0.85rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(30, 95, 63, 0.48);
    box-shadow: 0 0 0 4px rgba(30, 95, 63, 0.13);
}

.footer {
    background: linear-gradient(145deg, #112233, #162f40);
    color: #d5dfec;
    padding: 64px 0 26px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: #c1cede;
    font-size: 0.92rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ab0c6;
    font-size: 0.9rem;
}

.error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.error-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
}

.error-icon {
    font-size: 5rem;
    color: rgba(30, 95, 63, 0.24);
}

.error-content h1 {
    font-size: clamp(4rem, 9vw, 6rem);
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.error-content h2 {
    color: var(--text);
}

@media (max-width: 991px) {
    .modern-navbar {
        padding: 0.65rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.15rem 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.4rem;
    }

    .hero-slide {
        height: 520px;
    }

    .hero-caption {
        max-width: 86%;
    }
}

@media (max-width: 768px) {
    .section,
    .hero-section {
        padding: 64px 0;
    }

    .hero-caption {
        padding: 1.2rem 1rem;
        margin: 0 1rem;
        text-align: center;
        border-left: 1px solid rgba(255, 255, 255, 0.38);
    }

    .hero-caption h2 {
        font-size: 1.85rem;
    }

    .hero-caption p {
        font-size: 1rem;
    }

    .quick-facts-card,
    .card .card-body {
        padding: 1.2rem;
    }
}
