/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500&display=swap');

/* --- Root Variables --- */
:root {
    --primary-blue: #4A90E2;
    --secondary-blue: #357ABD;
    --text-color-dark: #0A2647;
    --accent-pink: #E94560;
    --white-color: #ffffff;
    --light-bg: #f0f7ff;
    --creamy-purple: #f5f0ff;
    --font-family: 'Poppins', sans-serif;
    --mono-font: 'Source Code Pro', monospace;
    --accent-green: #2ecc71;
    --light-green-bg: #f0fff5;
    --accent-orange: #e67e22;
    --light-orange-bg: #fff8f0;

    /* PURPLE GRADIENT FOR HEADER & FOOTER */
    --header-footer-bg: linear-gradient(90deg, #6a0dad 0%, #e000e0 100%);
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--white-color);
    color: var(--text-color-dark);
}
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    background: var(--header-footer-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}
.nav-logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

/* HEADER ACTION ICONS STYLING */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.action-icon {
    color: var(--white-color);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.action-icon:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}
.btn-apply-header {
    background-color: var(--accent-pink);
    color: var(--white-color);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-apply-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mobile-only-icon {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.nav-link {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--accent-pink);
}
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Main and Footer Transitions --- */
main, footer {
    transition: opacity 0.5s ease-in-out;
}

/* ======================================================= */
/* START: REBUILT PROFESSIONAL HERO SECTION CSS            */
/* ======================================================= */
.hero-section {
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* --- Left Side: Text --- */
.hero-text-content {
    flex: 1;
    max-width: 550px;
}

.hero-text-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color-dark);
}

.hero-text-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: var(--secondary-blue);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-pink);
    color: var(--white-color);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}
.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.5);
}

/* --- Right Side: Image --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* THE CSS BACKGROUND CIRCLE */
    background: radial-gradient(circle, rgba(178,102,238,0.5) 0%, rgba(106,13,173,0.15) 55%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.05);
}

.hero-college-image {
    width: 115%;
    position: absolute;
    filter: drop-shadow(10px 15px 20px rgba(0, 0, 0, 0.1));
}
/* ======================================================= */
/* END: NEW HERO SECTION CSS                               */
/* ======================================================= */


/* --- General Content Sections --- */
.content-section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color-dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* --- Management Section --- */
.management-section { background-color: var(--white-color); }
.management-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 3rem;
}
.management-text .text-wrapper {
    max-height: 125px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.management-text .text-wrapper.expanded {
    max-height: 1000px;
}
.management-text .full-text {
    display: block;
}
.management-text p {
    margin-bottom: 1rem;
}
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-decoration: none;
    text-align: center;
}
.btn-secondary:hover {
    background-color: var(--accent-pink);
    color: var(--white-color);
}
.management-images {
    background-color: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}
.management-images img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

/* --- Principal Section --- */
.principal-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--creamy-purple);
    color: var(--text-color-dark);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}
.principal-img img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 5px solid var(--primary-blue);
}
.principal-text {
    position: relative;
    padding-left: 2.5rem;
}
.principal-text::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 8rem;
    color: var(--primary-blue);
    opacity: 0.1;
    z-index: -1;
    font-family: Georgia, serif;
}
.principal-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* --- Leader & Typing Text Sections --- */
.leader-photo-section { }

.leader-photo {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    border: 5px solid var(--white-color);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}
.leader-experience-section {
    background-color: var(--creamy-purple);
    padding: 4rem 0;
}
.typing-text {
    font-family: var(--mono-font);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}
.typing-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}
.typing-text.typing-done::after {
    content: '';
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Professor Carousel --- */
.professors-section {}
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: auto;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.professor-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    text-align: center;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.professor-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid var(--white-color);
}
.professor-info {
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.professor-info h3 {
    font-size: 1.5rem;
    color: var(--text-color-dark);
    margin-bottom: 0.25rem;
}
.professor-info p {
    font-size: 1rem;
    color: var(--secondary-blue);
}
.slide-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
}
.slide-active .professor-info {
    opacity: 1;
    transition-delay: 0.3s;
}
.slide-prev {
    transform: translate(-120%, -50%) scale(0.6);
    opacity: 0.7;
    z-index: 5;
}
.slide-next {
    transform: translate(20%, -50%) scale(0.6);
    opacity: 0.7;
    z-index: 5;
}
.slide-hidden {
    transform: translate(80%, -50%) scale(0.3);
    opacity: 0;
    z-index: 1;
}

/* --- Programs Section --- */
.courses-section {}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.program-card {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    z-index: 1;
}
.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 250px;
}
.program-card.bca-card {
    background-image: url('assets/images/bca.jpeg');
}
.program-card.bcom-card {
    background-image: url('assets/images/bcom.jpeg');
}
.program-card.ba-card {
    background-image: url('assets/images/ba.jpeg');
}
.program-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.program-card p {
    margin-bottom: 1.5rem;
}
.program-card span {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    background-color: var(--accent-pink);
    padding: 8px 18px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

/* --- Facilities Section --- */
.facilities-section {}
.pill-heading {
    display: inline-block;
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}
.facility-card {
    background-color: transparent;
    min-height: 200px;
    perspective: 1000px;
    border: none;
}
.facility-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.facility-card:hover .facility-card-inner {
    transform: rotateY(180deg);
}
.facility-card-front, .facility-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}
.facility-card-front {
    background: var(--white-color);
}
.facility-card-back {
    background: var(--primary-blue);
    color: var(--white-color);
    transform: rotateY(180deg);
}
.facility-card-back h3 {
    margin-bottom: 0.5rem;
    color: var(--white-color);
}
.facility-card-back p {
    font-size: 0.9rem;
}
.facility-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.facility-icon {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    background: var(--creamy-purple);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.facility-card h3 {
    font-size: 1.25rem;
    color: var(--text-color-dark);
}

/* --- Co-curricular Section --- */
.cocurricular-section {
    background-color: var(--white-color);
}
.cocurricular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.activity-card {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    min-height: 250px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Style to apply before lazy loading the background */
.lazy-bg {
    background-image: none !important;
}

.activity-card .activity-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
}
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    z-index: 1;
}
.activity-content {
    position: relative;
    z-index: 2;
}
.activity-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}
.nss-card {
    background-image: url('assets/images/NSS.png');
}
.redcross-card {
    background-image: url('assets/images/redcross.png');
}

/* --- Mentors, Contact, Social --- */
.mentors-section {
    background-color: var(--light-bg);
}
.mentors-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-blue);
}
.mentors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mentor-image-wrapper img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}
.contact-section-home {
    background-color: var(--creamy-purple);
}
.contact-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}
.contact-card-home {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card-home a {
    text-decoration: none;
    color: inherit;
}
.contact-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
}
.contact-icon-home {
    font-size: 3rem;
    color: var(--white-color);
    background: #9b59b6;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-card-home h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.contact-card-home p {
    font-size: 1rem;
    color: var(--secondary-blue);
    line-height: 1.8;
}
.social-section {
    background-color: var(--white-color);
}
.social-slider-container {
    max-width: 550px;
    margin: auto;
    background: var(--creamy-purple);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
    overflow: hidden;
}
.social-slider-track {
    display: flex;
    width: 200%;
    animation: slide-social 6s ease-in-out infinite;
}
.social-slide {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}
.social-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}
.social-platform-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
}
.btn-social {
    display: inline-block;
    color: var(--white-color);
    padding: 14px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}
.btn-social:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}
.btn-youtube {
    background-color: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}
@keyframes slide-social {
    0%, 45% { transform: translateX(0%); }
    50%, 95% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* --- News Ticker --- */
.news-ticker-section {
    background-color: var(--text-color-dark);
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 10;
}
.news-ticker-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.scrolling-text-wrapper {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}
.scrolling-text-item {
    display: inline-block;
    padding: 1rem 0;
    color: var(--white-color);
    font-weight: 600;
    font-size: 1rem;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Event Slider --- */
.event-slider-section {
    background-color: var(--white-color);
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.event-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}
.event-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}
.event-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}
.event-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.event-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white-color);
    padding: 3rem 2rem 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.event-slider-dots {
    text-align: center;
    padding: 1rem 0 0 0;
}
.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* --- Footer --- */
.footer {
    background: var(--header-footer-bg);
    color: var(--white-color);
    text-align: center;
    padding: 3rem 0;
}

/* --- Other Page Specific Styles (FROM OLD CSS) --- */
.bca-learn-section { background-color: var(--white-color); }
.topic-card { background: #fff; padding: 2rem; border-radius: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 2px solid transparent; text-align: center; }
.topic-card:hover { transform: translateY(-10px); box-shadow: 0 0 25px rgba(74, 144, 226, 0.4); border-color: var(--primary-blue); }
.bca-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.bca-icon { font-size: 3rem; color: var(--primary-blue); }
.topic-card h3 { margin: 1rem 0 0.5rem 0; }
.bca-details-section { background-color: var(--creamy-purple); }
.course-detail-layout { position: relative; display: flex; align-items: center; gap: 2rem; }
.course-image-wrapper { flex: 1; z-index: 1; }
.course-image-wrapper img { width: 100%; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); display: block; }
.course-text-wrapper { flex: 1.2; background: var(--white-color); padding: 3rem; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 2; }
.course-text-wrapper h2 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--secondary-blue); }
.course-text-wrapper p { margin-bottom: 1.5rem; line-height: 1.8; }
.audio-player { margin-top: 2rem; background: var(--light-bg); padding: 1rem; border-radius: 10px; display: flex; align-items: center; gap: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.audio-player p { margin: 0; font-weight: 600; }
.audio-btn { background: var(--primary-blue); color: var(--white-color); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.bcom-details-section, .ba-details-section { padding-top: 5rem; background-color: var(--light-bg); }
.course-intro { text-align: center; font-size: 1.1rem; max-width: 800px; margin: 0 auto 4rem auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--white-color); padding: 2rem; text-align: center; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-icon { font-size: 3rem; }
.bcom-details-section .feature-icon { color: var(--accent-green); }
.ba-details-section .feature-icon { color: var(--accent-orange); }
.feature-card h3 { margin: 1rem 0 0.5rem 0; }
.bca-extra-section { background-color: var(--creamy-purple); }
.bca-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.bca-extra-card { display: flex; align-items: center; gap: 1.5rem; background: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);}
.bca-extra-icon { font-size: 3rem; color: var(--accent-pink); }
.bca-tools-section { background-color: var(--light-bg); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; align-items: center; gap: 2rem; }
.tool-icon { text-align: center; font-weight: 600; }
.tool-icon img { display: block; margin-bottom: 0.5rem; filter: grayscale(100%); animation-name: autoGlow; animation-duration: 4s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; transition: transform 0.3s ease, filter 0.3s ease; }
@keyframes autoGlow { 0%, 100% { filter: grayscale(100%); transform: scale(1.0); } 50% { filter: grayscale(0%); transform: scale(1.1); } }
.tools-grid .tool-icon:nth-child(1) img { animation-delay: 0s; }
.tools-grid .tool-icon:nth-child(2) img { animation-delay: 1s; }
.tools-grid .tool-icon:nth-child(3) img { animation-delay: 2s; }
.tools-grid .tool-icon:nth-child(4) img { animation-delay: 3s; }
.tool-icon:hover img { animation: none; filter: grayscale(0%); transform: scale(1.1); }
.facility-page-section { padding: 5rem 0; }
.facility-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.facility-image img { width: 100%; border-radius: 15px; box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2); }
.facility-text h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--secondary-blue); font-weight: 700; }
.facility-text p { line-height: 1.8; }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.amenity-card { background: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.amenity-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2); }
.amenity-icon { font-size: 3rem; color: var(--accent-pink); margin-bottom: 1rem; }
.amenity-card h3 { font-size: 1.2rem; color: var(--text-color-dark); }
.course-gallery-section { padding-top: 0; }
.course-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.course-image-grid-single { grid-template-columns: 1fr; max-width: 800px; margin: auto; }
.course-gallery-image img { width: 100%; border-radius: 15px; box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2); object-fit: cover; height: 100%; }


/* --- Responsive Media Queries --- */
@media(max-width: 992px) {
    .management-grid { grid-template-columns: 1fr; }
    .management-images { order: -1; margin-bottom: 2rem; }
    .bca-grid { grid-template-columns: repeat(2, 1fr); }
    .course-detail-layout, .facility-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .course-text-wrapper {
        margin-left: 0;
        margin-top: 0;
        width: 90%;
        padding: 2rem;
    }
}

@media(max-width: 768px) {
    /* Mobile Navbar layout fix */
    .navbar { justify-content: space-between; }
    .header-actions { order: 2; }
    .hamburger { order: 3; }
    .btn-apply-header.desktop-only-button { display: none; }
    .action-icon.mobile-only-icon { display: inline-flex; }

    .nav-menu {
        position: fixed; right: -100%; top: 0; flex-direction: column;
        background: var(--header-footer-bg);
        width: 280px; height: 100vh; text-align: left; padding: 2rem; transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); justify-content: flex-start; gap: 0; z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; }
    .nav-link { color: var(--white-color); font-size: 1.2rem; display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .hamburger { display: block; }
    .hamburger.active .bar { background-color: var(--white-color); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Responsive styles for the Hero Section */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .hero-layout {
        flex-direction: column;
        gap: 3rem;
    }
    .hero-text-content {
        order: 2; /* Text appears below the image */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-image-container {
        order: 1; /* Image appears on top */
        width: 100%;
        padding-top: 2rem;
    }
    .hero-image-wrapper {
        max-width: 350px; /* Smaller circle on mobile */
    }

    /* ==== MOBILE FIX FOR COURSE & FACILITY PAGES ==== */
    .course-text-wrapper, .facility-text {
        order: 1; /* Make text appear FIRST on mobile */
        width: 100%;
        padding: 1.5rem;
    }
    .course-image-wrapper, .facility-image {
        order: 2; /* Make image appear SECOND on mobile */
    }
     /* ========================================= */

    .content-section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .principal-card { flex-direction: column; text-align: center; padding: 2rem; }
    .principal-text { padding-left: 0; }
    .principal-text::before { display: none; }
    .principal-img img { width: 150px; height: 150px; }
    .principal-text p { font-size: 1rem; }
    .typing-text { font-size: 1.1rem; }
    .carousel-container { height: 450px; }
    .professor-slide { width: 220px; }
    .professor-slide img { height: 280px; }

    .card-grid, .cocurricular-grid, .mentors-grid, .facilities-grid, .bca-grid, .bca-extra-grid, .feature-grid, .course-image-grid, .admission-grid {
        grid-template-columns: 1fr;
    }
    .course-grid {
        grid-template-columns: 1fr;
    }
    .event-slider-container { aspect-ratio: 4 / 3; }
    .event-slide-caption { font-size: 1rem; padding: 2rem 1rem 1rem 1rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mobile Scroll Snap Carousel Styles */
    .free-courses-section .container { padding: 0; }
    .course-carousel-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .course-carousel-container::-webkit-scrollbar { display: none; }
    .free-courses-section .course-grid {
        display: flex;
        width: max-content;
        grid-template-columns: none;
        padding: 0 50px;
    }
    .free-courses-section .course-card {
        scroll-snap-align: center;
        width: 80vw;
        max-width: 300px;
        flex-shrink: 0;
    }
}

/* --- PRELOADER STYLES --- */
body.loading {
    overflow: hidden;
}
body.loading > header,
body.loading > main,
body.loading > footer,
body.loading > .overlay {
    opacity: 0;
    visibility: hidden;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6a0dad;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    transition-delay: 0.2s;
}
#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: var(--primary-blue);
    border-right-color: var(--accent-pink);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- HOMEPAGE NOTICE SLIDER STYLES --- */
.notice-slider-container { position: relative; width: 100%; max-width: 900px; margin: auto; overflow: hidden; border-radius: 15px; box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25); min-height: 300px; background: var(--white-color); }
.notice-slider-track { display: flex; height: 100%; transition: transform 0.8s ease-in-out; }
.notice-slide { position: relative; width: 100%; height: 400px; flex-shrink: 0; color: var(--white-color); display: flex; align-items: flex-end; }
.notice-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.notice-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 2; }
.notice-slide-content { position: relative; z-index: 3; padding: 2rem; }
.notice-slide-content h3 { font-size: 1.75rem; margin: 0; }
.notice-slide-content h3 a { color: var(--white-color); text-decoration: none; transition: color 0.3s; }
.notice-slide-content h3 a:hover { color: var(--primary-blue); }

/* --- ADMISSION PAGE STYLES --- */
.admission-section {
    padding-top: 120px;
    padding-bottom: 5rem;
    min-height: 80vh;
}
.admission-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.admission-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}
.admission-card .card-title {
    font-size: 1.8rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.admission-card .card-title i {
    font-size: 2rem;
    color: var(--primary-blue);
}
.admission-card p {
    margin-bottom: 1.5rem;
    color: #555;
}
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.requirements-list li i {
    color: var(--accent-green);
    font-size: 1.5rem;
}
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    word-break: break-word;
}
.fee-table th, .fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.fee-table th {
    background-color: var(--creamy-purple);
    font-weight: 600;
}
.fee-table tbody tr:nth-child(even) {
    background-color: #f9f9ff;
}

/* --- MAP SECTION --- */
.map-container {
    margin-top: 3rem;
}
.map-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-dark);
    font-weight: 700;
}
.map-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
}
.map-container iframe:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}
@media(max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}
/* --- ADMISSION APPLY SECTION STYLES --- */
.admission-apply-section {
    padding-top: 0;
    padding-bottom: 5rem;
}
.admission-apply-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admission-apply-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}
.admission-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.admission-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admission-apply-content {
    padding: 2.5rem;
}
.apply-heading {
    font-size: 2rem;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}
.admission-apply-content p {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
}
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-green);
    color: var(--white-color);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}
.btn-apply:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.5);
    background-color: #27ae60;
}
.btn-apply i {
    font-size: 1.4rem;
}

/* --- FREE COURSES SECTION STYLES --- */
.free-courses-section {
    background-color: var(--white-color);
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    color: var(--secondary-blue);
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.course-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid #e0eaff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
    border-color: var(--primary-blue);
}
.course-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}
.course-card h3 {
    font-size: 1.5rem;
    color: var(--text-color-dark);
    margin-bottom: 0.75rem;
}
.course-card p {
    margin-bottom: 2rem;
    min-height: 50px;
}
.btn-course {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-course:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}
.course-card.glowing {
    animation: cardGlow 1.5s ease-in-out;
}
@keyframes cardGlow {
    0%, 100% {
        transform: scale(1.0);
        box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
        border-color: #e0eaff;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
        border-color: var(--primary-blue);
    }
}

/* ======================================================= */
/* START: NEW REUSABLE PAGE HERO SECTION FOR OTHER PAGES   */
/* ======================================================= */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 2rem 6rem 2rem;
    min-height: 50vh;
    color: var(--white-color);
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-background img,
.page-hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key for the "correct size" */
}

/* Dark overlay to make text readable */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 38, 71, 0.6); /* A semi-transparent dark blue */
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    }
