/* Base Styles */
:root {
    --primary-color: #1a4b8e;
    --secondary-color: #ffc107;
    --tertiary-color: #e9f2ff;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --black: #000;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.underline {
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.primary-btn:hover {
    background-color: #0d3a7a;
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    background-color: #e5ac00;
    transform: translateY(-3px);
}

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

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

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
}

.popup-slider {
    margin: 20px 0;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.popup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

.popup-slide.active {
    opacity: 1;
}

.popup-dots {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}

.popup-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.popup-dot.active {
    background-color: var(--primary-color);
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i, .social-links i {
    margin-right: 5px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.main-header {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    display: block;
}

.nav-links a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover:after, .nav-links li.active a:after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: var(--tertiary-color);
}

.dropdown-menu a:after {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080?text=College+Campus') no-repeat center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Announcement Section */
.announcement-section {
    background-color: var(--tertiary-color);
    padding: 15px 0;
}

.announcement-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-right: 20px;
}

.announcement-header h3 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.announcement-header i {
    margin-right: 10px;
}

.announcement-ticker {
    display: inline-block;
    width: calc(100% - 230px);
    overflow: hidden;
    vertical-align: middle;
}

.ticker-wrapper {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    display: inline-block;
}

.ticker-item {
    display: inline-block;
    padding: 0 50px;
    color: var(--primary-color);
    font-weight: 500;
}

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

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text, .about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Courses Section */
.courses-section {
    background-color: var(--light-bg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.course-icon {
    width: 70px;
    height: 70px;
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.course-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(26, 75, 142, 0.9), rgba(26, 75, 142, 0.9)), url('https://via.placeholder.com/1920x500?text=Stats+Background') no-repeat center/cover;
    padding: 80px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-count {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-title {
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-tab {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
}

.gallery-tab:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.gallery-tab.active {
    color: var(--primary-color);
}

.gallery-tab.active:after {
    width: 100%;
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: #333;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Admission Section */
.admission-section {
    background-color: var(--light-bg);
}

.admission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.process-steps {
    margin-top: 30px;
}

.process-steps li {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.fees-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.fees-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.fees-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.apply-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Faculty Section */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.faculty-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.faculty-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    padding: 0 15px;
}

.faculty-designation {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.faculty-qualification {
    color: var(--light-text);
    font-size: 0.9rem;
    padding: 0 15px 20px;
}

/* Student Corner Section */
.student-corner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.logo-item {
    width: calc(20% - 15px);
    aspect-ratio: 3/2;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.logo-placeholder {
    color: var(--light-text);
    font-size: 0.8rem;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 30px;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-prev, .testimonial-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-detail {
    display: flex;
    margin-bottom: 30px;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-detail h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
footer {
    background-color: #111;
    color: var(--white);
}

.footer-top {
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

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

.footer-widget p {
    color: #bbb;
    margin-bottom: 10px;
}

.footer-widget i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #777;
}

.footer-bottom i {
    color: #e25555;
}

/* Utility Classes */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 99;
    box-shadow: var(--box-shadow);
}

/* Responsive Design */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content, 
    .admission-content, 
    .student-corner-content, 
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .announcement-header {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    .announcement-ticker {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-count {
        font-size: 2.5rem;
    }
    
    .contact-detail {
        flex-direction: column;
    }
    
    .contact-detail i {
        margin-bottom: 10px;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: #f5f5f5;
        padding-left: 20px;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-toggle {
        position: relative;
    }
    
    .dropdown-toggle:after {
        content: "+";
        position: absolute;
        right: 0;
        top: 5px;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle.active:after {
        transform: rotate(45deg);
    }
    
    .dropdown-menu.active {
        display: block;
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .apply-buttons {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .company-logos {
        justify-content: center;
    }
    
    .logo-item {
        width: calc(33.33% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top, .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}