:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gold-color: #FFD700;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: var(--gold-color);
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 90px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-text p {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0;
    font-weight: 500;
}

.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 15px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 30px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color) !important;
    border-left: 3px solid var(--secondary-color);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/banner.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-section,
.why-us-section,
.principal-section,
.blog-section,
.event-section,
.contact-section {
    padding: 80px 0;
}

.about-content,
.why-us-content {
    margin-top: 30px;
}

.feature-box {
    padding: 30px 25px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.principal-message {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.principal-message:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    font-family: Georgia, serif;
    line-height: 0;
}

.principal-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.principal-name {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 20px;
}

.principal-designation {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.blog-card,
.event-card {
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.blog-card:hover,
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img,
.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content,
.event-content {
    padding: 20px;
}

.blog-date,
.event-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.blog-title,
.event-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    color: #c0392b;
    text-decoration: underline;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.course-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.course-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.course-features li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    height: 50px;
    border-radius: 0;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

textarea.form-control {
    height: auto;
    resize: none;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    border-radius: 7px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links h3,
.footer-newsletter h3 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-newsletter h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0 15px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #c0392b;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive styles */
@media (max-width: 991px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .principal-message {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        text-align: center;
    }

    .logo-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .logo-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .navbar-brand {
        display: block;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-about,
    .footer-links,
    .footer-newsletter {
        margin-bottom: 40px;
    }
}