/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --white: #ffffff;
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

.mt-5 {
    margin-top: 3rem;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 70px;
    width: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 70px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    opacity: 0.2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    transform: perspective(800px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    background: var(--accent-dark);
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Hero Buttons */
.hero-buttons .btn {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
    box-shadow: 0 6px 24px rgba(0, 123, 255, 0.25);
    transform: translateY(-2px) scale(1.04);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.hero-buttons .btn-outline:hover {
    background: #007bff;
    color: var(--white);
    border-color: #0056b3;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(37, 99, 235, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--gray);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-number-accom {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-link {
    color: var(--white) !important;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.stat-link:hover,
.stat-link:visited,
.stat-link:focus,
.stat-link:active {
    color: var(--white) !important;
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 0 40px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Page Styles */
.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.criteria-list {
    margin-top: 20px;
}

.criterion {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.criterion i {
    color: var(--success);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

/* Contact Page Styles */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* Application Page Styles */
.application-container {
    max-width: 900px;
    margin: 70px auto 50px;
}

.application-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 25px;
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 25px;
}

.form-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.form-card-body {
    padding: 25px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Newsletter Styles */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.newsletter-card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 123, 255, 0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.newsletter-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15), 0 2px 8px rgba(0,0,0,0.06);
}

.newsletter-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.newsletter-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.newsletter-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0056b3;
}

.newsletter-date {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.newsletter-summary {
    flex: 1;
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-readmore {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.newsletter-readmore:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Blazor Specific Styles */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--white);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

/* Navigation Styles */
.nav-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0.5rem 0;
    padding: 0;
}

.apply-link {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-link:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-login-link {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-login-link:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Admin Menu Styles */
.admin-menu {
    position: relative;
}

.admin-link {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white !important;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-menu:hover .admin-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-submenu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.admin-submenu a:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.logout-link {
    color: #ef4444 !important;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.75rem !important;
}

.logout-link:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Active state for navigation */
.nav-menu li a.active {
    color: #3b82f6;
    font-weight: 600;
}

.apply-link.active,
.admin-login-link.active,
.admin-link.active {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white !important;
}

/* ===========================================
   GALLERY SECTION - 4 COLUMNS LAYOUT
   =========================================== */

.gallery {
    padding: 80px 0;
    background: var(--light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 4 Images per row */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)!important;
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-item-category {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: capitalize;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 30px;
    pointer-events: none;
}

.lightbox-nav-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.lightbox-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.lightbox-nav-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1400px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 25px;
    }

    /* Gallery: 3 columns on tablets */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .gallery-item img {
        height: 260px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery: 2 columns on small tablets */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .lightbox-nav {
        padding: 0 20px;
    }
    
    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 70%;
        height: 100vh;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header {
        padding: 80px 0 40px;
        margin-top: 60px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: left;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -28px;
    }

    .form-card-body {
        padding: 20px;
    }

    .form-col {
        min-width: 100%;
    }

    .gallery {
        padding: 60px 0;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-nav {
        padding: 0 15px;
    }
    
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        margin-top: 15px;
    }

    .admin-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 0.5rem;
        border-radius: 6px;
    }

    .nav-divider {
        margin: 0.25rem 0;
    }

    header .apply-link,
    header .admin-login-link,
    header .admin-link {
        margin: 0.5rem 0;
        text-align: center;
        display: block;
    }

    main, 
    .page-header,
    .page-header .container,
    .contact-info,
    .container {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 20px;
    }

    .form-card-header {
        padding: 15px 20px;
    }

    .form-card-header h3 {
        font-size: 1.3rem;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Gallery: 1 column on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}