@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: whitesmoke;
}

/* Header */
header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ec1e21;
}

.contactbox {
    background: rgb(6, 6, 83);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contactbox:hover {
    transform: scale(1.1);
}

nav a {
    text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: #f7f3f4;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .info {
    color: rgb(4, 4, 49);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    animation: fadeInUp 1s ease;
    color: #ec1e21;
    font-family: "Baloo 2", sans-serif;
}

.hero p {
    color: rgb(4, 4, 49);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    font-family: "Baloo 2", sans-serif;
}

.hero .banner1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.hero .banner1 img {
    width: 60%;
    object-fit: contain;
}

.cta-button {
    background: white;
    color: #ec1e21;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    border: 2px solid rgb(4, 4, 49);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(4, 4, 49);
}

.section-title1 {
    text-align: center;
    font-size: 2.5rem;
    color: rgb(4, 4, 49);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: rgb(4, 4, 49);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #ec1e21;
}

/* Courses Section */
.courses {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 2rem;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-header {
    background: rgb(6, 6, 83);
    color: white;
    padding: 2rem;
    text-align: center;
}

.course-body {
    padding: 2rem;
}

.course-body ul {
    list-style: none;
    padding-left: 0;
    color: rgb(4, 4, 49);
}

.course-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.course-body li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
}

/* Affiliations */
.afcontainer {
    width: 100vw;
    min-height: 50vh;
    box-sizing: border-box;
    padding: 5px;
}

.mainbox1 {
    width: 80%;
    height: 40%;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    padding: 5px;
    margin: 2px auto;
    align-items: center;
    justify-content: center;
}

.mainbox2 {
    width: 80%;
    height: 40%;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    padding: 10px;
    margin: 2px auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mainbox1 .box {
    box-sizing: border-box;
    height: 80%;
    width: 25%;
    padding: 5px;
}

.mainbox1 .box img {
    width: 100%;
    object-fit: contain;
}

.mainbox2 .box1 {
    box-sizing: border-box;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.number {
    font-size: 72px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1;
}

.stars {
    font-size: 24px;
    color: #ffa500;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.description {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
    text-align: center;
}

.percent {
    font-size: 32px;
    color: #2c3e50;
    font-weight: 300;
}

.achi-form {
    text-align: center;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em;
    color: rgb(5, 5, 66);
}

.achi-form .achievement-percentage {
    color: red;
    font-style: italic;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
    max-width: 400px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    margin: 2rem 0 1rem;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #ec1e21;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

/* Contact Section */
.contact {
    background: rgb(4, 4, 49);
    color: white;
    padding: 80px 2rem;
    text-align: center;
}

.contact-cards {
    box-sizing: border-box;
    display: flex;
    gap: 15px;
    border-radius: 5px;
    padding: 10px;
}

.contactinfo {
    width: 25%;
    box-sizing: border-box;
    font-family: "Baloo 2", sans-serif;
    max-width: 800px;
    margin: 5px auto;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contactinfo:hover {
    box-shadow: 5px 10px 15px 1px rgb(0, 0, 8);
}

.contact-item1 {
    font-size: 1.5em;
    font-weight: 600;
    padding: 5px;
    color: #ffa500;
}

.contact-item2 {
    font-size: 1.2em;
    margin: 3px;
}

.contact-item3 {
    margin: 2px;
}

.map {
    box-sizing: border-box;
    border: 1px solid red;
    padding: 2px;
    width: 30%;
    margin: 5px auto;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.map:hover {
    transform: scale(1.2);
    background-color: #ec1e21;
}

.map a {
    text-decoration: none;
    color: white;
}

/* Director Section */
.mess_title {
    width: 100vw;
    display: flex;
    justify-content: center;
}

.messcont {
    box-sizing: border-box;
    width: 100vw;
    height: 50%;
    display: flex;
    justify-content: center;
}

.messcont .mess_img {
    box-sizing: border-box;
    width: 50%;
    height: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mess_img img {
    width: 60%;
    height: 40%;
    object-fit: contain;
    border-radius: 50px;
}

.message {
    box-sizing: border-box;
    width: 50%;
    padding: 10px;
    font-size: 1.1em;
    font-weight: 500;
}

/* Footer */
footer {
    background: rgb(4, 4, 49);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.5s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    color: #ec1e21;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

.submit-btn {
    width: 100%;
    background: rgb(6, 6, 83);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-450%);
    }
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-250%);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        padding: 12px 15px;
        flex-wrap: wrap;
        position: relative;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .contactbox {
        order: 1;
        margin-left: auto;
        margin-right: 15px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-links {
        order: 3;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .hero {
        box-sizing: border-box;
        flex-direction: column;
        padding: 5px;
        align-items: center;
        justify-content: center;
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .info {
        justify-content: center;
    }

    .mainbox2 {
        width: 95%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mainbox1 {
        display: block;
        overflow: hidden;
        position: relative;
        padding: 20px 0;
        width: 100%;
    }

    .slider-track {
        display: flex;
        animation: scroll 15s linear infinite;
    }

    .slider-track:hover {
        animation-play-state: paused;
    }

    .mainbox1 .box {
        min-width: 200px;
        max-width: 200px;
        margin: 0 15px;
        flex-shrink: 0;
        padding: 25px 20px;
    }

    .mainbox2 .box1 {
        width: 100%;
        padding: 15px 5px;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .description {
        display: flex;
        justify-content: center;
    }

    .myslider {
        display: block;
        overflow: hidden;
        position: relative;
        padding: 5px;
        width: 100%;
    }

    .contactinfo {
        box-sizing: border-box;
        width: 300px;
        padding: 10px;
    }

    .messcont {
        flex-direction: column;
        height: auto;
    }

    .messcont .mess_img {
        width: 100%;
        height: auto;
        padding: 20px 10px;
    }

    .mess_img img {
        width: 80%;
        height: auto;
        max-width: 300px;
    }

    .message {
        width: 100%;
        padding: 10px 20px;
        font-size: 1em;
        text-align: center;
    }

    /* Testimonials Mobile Slider */
    .testimonials {
        padding: 60px 1.5rem;
    }

    .testimonial-wrapper {
        overflow: hidden;
    }

    .testimonial-container {
        display: block;
    }

    #TestimonialSlider .slider-track {
        display: flex;
        gap: 1.5rem;
        animation: testimonialScroll 20s linear infinite;
        padding: 10px 0;
    }

    #TestimonialSlider .slider-track:hover {
        animation-play-state: paused;
    }

    .testimonial-card {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        min-height: 340px;
        margin: 0;
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .quote-icon {
        font-size: 2.5rem;
        top: 8px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .contactbox {
        font-size: 12px;
        padding: 6px 10px;
    }

    .logo img {
        height: 35px;
    }

    .afcontainer {
        padding: 3px;
    }

    .mainbox2 {
        width: 98%;
        gap: 8px;
        padding: 5px;
    }

    .mainbox1 .box {
        min-width: 160px;
        max-width: 160px;
        padding: 20px 15px;
        margin: 0 10px;
    }

    .mainbox2 .box1 {
        width: 100%;
        padding: 10px 5px;
    }

    .stars {
        letter-spacing: 2px;
    }

    .mess_img img {
        width: 90%;
        max-width: 250px;
    }

    .message {
        font-size: 0.95em;
        padding: 10px 15px;
    }

    /* Testimonials Small Mobile */
    .testimonials {
        padding: 40px 1rem;
    }

    #TestimonialSlider .slider-track {
        animation: testimonialScroll 10s linear infinite;
        gap: 1.2rem;
    }

    .testimonial-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        min-height: 320px;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .testimonial-text {
        font-size: 0.85rem;
        margin: 1.2rem 0 0.8rem;
        line-height: 1.6;
    }

    .quote-icon {
        font-size: 2rem;
        top: 5px;
        left: 10px;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }
}