:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #ed8936;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --light: #f7fafc;
    --dark: #1a202c;
    --info: #4299e1;
    --text: #4a5568;
    --text-light: #718096;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-accent: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(237, 137, 54, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.btn-accent:hover {
    background: #dd6b20;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
}

.brand-icon {
    color: var(--accent);
    margin-right: 5px;
}

.brand-text {
    color: white;
}

.brand-accent {
    color: var(--accent);
}

.navbar .nav-link {
    color: white;
    font-weight: 500;
    padding: 8px 15px !important;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-left: 10px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1523050854058-8df9015c3f13?w=1920&h=1080&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.feature-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--light);
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    width: 250px;
}

.about-img-overlay img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: 20px;
    left: -20px;
    background: var(--accent);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.4);
}

.about-badge span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.about-badge small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-list {
    margin-top: 25px;
}

.about-list li {
    padding: 10px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-list i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Courses Section */
.courses-section {
    padding: 100px 0;
    background: white;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.course-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.course-badge {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.course-features {
    margin-bottom: 20px;
}

.course-features li {
    padding: 8px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-features i {
    color: var(--accent);
}

/* Facilities Section */
.facilities-section {
    padding: 100px 0;
    background: var(--gradient);
}

.facilities-section .section-header .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.facilities-section .section-header h2,
.facilities-section .section-header p {
    color: white;
}

.facility-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.facility-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.facility-icon i {
    font-size: 1.5rem;
    color: white;
}

.facility-item h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.facility-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
    height: 520px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--light);
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.testimonial-content p {
    color: var(--text-light);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-control {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.form-group {
    margin-bottom: 0;
}

/* Admissions Section */
.admissions-section {
    padding: 0 0 100px;
}

.admissions-box {
    background: var(--gradient);
    padding: 50px;
    border-radius: 20px;
    color: white;
}

.admissions-box h2 {
    color: white;
    margin-bottom: 10px;
}

.admissions-box h2 i {
    margin-right: 15px;
}

.admissions-box p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
}

.footer-top {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .navbar-brand {
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.1rem;
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 15px 25px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #dd6b20;
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-img-overlay {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .about-badge {
        left: 20px;
        top: auto;
        bottom: -20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1) {
        grid-row: span 1;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .admissions-box {
        padding: 30px;
    }
    
    .admissions-box .text-lg-end {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}