/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 15px 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-title {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.header-title h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.header-title .subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.header-title .location {
    font-size: 0.8rem;
    opacity: 0.8;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.helpline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-apply {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-apply:hover {
    background: #d97706;
}

/* Navigation */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    width: 100%;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-light);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    padding: 60px 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--primary-color);
}

.hero-banner-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
    z-index: 1;
}

.hero-banner-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.courses-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.courses-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Hero Banner Navigation */
.hero-banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.hero-banner-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-banner-dots .dot.active {
    background: var(--accent-color);
    border-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

.hero-banner-prev,
.hero-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hero-banner-prev {
    left: 20px;
}

.hero-banner-next {
    right: 20px;
}

.hero-banner-prev:hover,
.hero-banner-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.vision-mission {
    margin-top: 40px;
}

.vision-mission h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.vision-mission ul {
    margin-left: 20px;
    margin-top: 15px;
}

.vision-mission li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.course-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.course-icon-fa {
    font-size: 4.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card:hover .course-icon-fa {
    color: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.course-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.course-seats {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.course-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Management Grid */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.management-card {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.management-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-color);
}

.management-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.management-designation {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.management-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.infrastructure-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.infrastructure-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.infrastructure-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Admission Section */
.admission-content {
    max-width: 800px;
    margin: 0 auto;
}

.admission-section {
    margin-bottom: 40px;
}

.admission-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.admission-section ul {
    margin-left: 20px;
}

.admission-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.admission-section ol {
    margin-left: 20px;
}

.admission-section ol li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    text-align: left;
}

.footer-bottom-right {
    text-align: right;
}

.footer-bottom p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-bottom-right a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-bottom-right a:hover {
    color: var(--white);
    opacity: 1;
    text-decoration: underline;
}

/* Success/Error Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner-container {
        min-height: 500px;
    }

    .hero-banner-slide {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .hero-banner-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
    }

    .hero-banner-prev,
    .hero-banner-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-banner-prev {
        left: 10px;
    }

    .hero-banner-next {
        right: 10px;
    }

    .hero-banner-dots {
        bottom: 20px;
    }

    .header-top-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1rem;
    }

    .header-title .subtitle {
        font-size: 0.75rem;
    }

    .header-contact {
        align-items: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-banner-container {
        min-height: 450px;
    }

    .hero-banner-slide {
        background-attachment: scroll;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .courses-list {
        max-width: 100%;
        padding: 0 20px;
    }

    .courses-list li {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .courses-grid,
    .management-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .header-title h1 {
        font-size: 0.9rem;
    }

    .hero-banner-container {
        min-height: 400px;
    }

    .hero-banner-slide {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .hero-banner-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(59, 130, 246, 0.85) 100%);
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-banner-prev,
    .hero-banner-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-banner-dots .dot {
        width: 10px;
        height: 10px;
    }

    .hero-banner-dots .dot.active {
        width: 25px;
    }

    .section {
        padding: 40px 0;
    }

    .management-photo {
        width: 150px;
        height: 150px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        text-align: center;
        width: 100%;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}
