:root {
    --primary: #1c6336;     /* Dark Green from logo */
    --secondary: #0d476e;   /* Dark Blue from logo */
    --accent: #c83232;      /* Red from logo */
    --light-primary: #e8f5ee;
    --light-secondary: #eaf4f9;
    --dark: #333333;
    --light: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #144e2a;
    border-color: #144e2a;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #0a3958;
    border-color: #0a3958;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

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

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light-primary {
    background-color: var(--light-primary) !important;
}

.bg-light-secondary {
    background-color: var(--light-secondary) !important;
}

/* Top bar */
.top-bar {
    background-color: var(--secondary);
    font-size: 0.9rem;
    padding: 8px 0;
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
}

.navbar-brand img {
    max-height: 70px;
}

.navbar .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 1.5rem 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.navbar .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
}

.navbar .btn-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Hero section */
.hero-section .carousel-item {
    height: 600px;
}

.hero-section .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-section .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    bottom: 5rem;
}

.hero-section .carousel-caption h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Section styling */
section {
    padding: 2rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured courses */
.course-card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

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

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .course-meta {
    font-size: 0.85rem;
    color: #777;
}

.course-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}

/* Why choose us section */
.why-choose-us {
    background-color: var(--light-primary);
}

.feature-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.feature-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card:before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--light-primary);
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 0;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    position: relative;
    z-index: 1;
}

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

/* Stats section */
.stats-section {
    background-color: var(--secondary);
    color: #fff;
    padding: 4rem 0;
}

.stat-number {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    color: #fff;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA section */
.cta-section {
    background-color: var(--light);
    padding: 5rem 0;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* News section */
.news-section {
    background-color: var(--light-secondary);
}

.news-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.news-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Partners section */
.partners-section {
    background-color: #fff;
    padding: 4rem 0;
}

.partners-section img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 70px;
}

.partners-section img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
footer {
    background-color: #252525;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

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

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: var(--primary);
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hero-section .carousel-item {
        height: 500px;
    }
    
    .hero-section .carousel-caption {
        bottom: 2rem;
        max-width: 90%;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar .text-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
    
    .hero-section .carousel-item {
        height: 400px;
    }
    
    .hero-section .carousel-caption {
        bottom: 1rem;
        padding: 1.5rem;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

.faculty-card {
    transition: all 0.3s ease;
}

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

.faculty-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.faculty-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--light-primary);
    color: var(--primary);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background-color: var(--primary);
    color: #fff;
}

.page-header {
    background-color: var(--light-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark);
}

.tagline-section {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.tagline-section h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: 300;
}

.director-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.director-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.director-name {
    color: #2c3e50;
    font-weight: 600;
}

.director-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.director-credentials {
    font-style: italic;
}

.message-quote-icon {
    opacity: 0.6;
}

.message-text p {
    line-height: 1.7;
    color: #555;
}

.message-text .lead {
    font-weight: 500;
    color: #2c3e50;
}

.signature-line {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .director-img {
        width: 150px;
        height: 150px;
    }
    
    .message-text {
        text-align: justify;
    }
}
