/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Top Bar Styles */
.top-bar {
    background-color: #002147; /* Classic Navy Blue */
    color: #ffffff;
    font-size: 14px;
    border-bottom: 2px solid #ffc107; /* Gold Accent line */
}

.top-link a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.top-link a:hover {
    color: #ffc107;
}

.text-accent {
    color: #ffc107;
}

/* Social Media Icons */
.social-icons a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Logo Section Styles */
.logo-section {
    background-color: #ffffff;
}

.college-name {
    color: #002147;
    font-size: 1.8rem; /* Adjusted for better balance */
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-img {
    max-height: 30px; /* Increased from 30px so it's actually visible */
    width: auto;
    transition: 0.3s;
}

/* --- RESPONSIVENESS --- */

/* Tablets and small desktops */
@media (max-width: 992px) {
    .college-name {
        font-size: 1.4rem;
    }
    .logo-img {
        max-height: 70px;
    }
}

/* Mobile (Phoness) */
@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
    }
    
    .social-icons {
        margin-top: 5px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 8px;
    }

    .college-name {
        font-size: 1.1rem;
    }
    
    .logo-img {
        max-height: 55px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .college-name {
        font-size: 0.95rem;
    }
    
    .logo-img {
        max-height: 45px;
    }
}

/* --- NAVIGATION STYLING --- */
.main-nav {
    background-color: #002147; /* Navy background for the menu bar */
    border-bottom: 3px solid #ffc107;
}

.main-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 12px !important;
    text-transform: uppercase;
    transition: 0.3s;
}

.main-nav .nav-link:hover {
    color: #ffc107 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- HOME ICON --- */
.home-link i {
    font-size: 18px;
}

/* --- DROPDOWN STYLING --- */
.dropdown-menu {
    border-radius: 0;
    margin-top: 0;
    padding: 10px 0;
    min-width: 220px;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    color: #002147;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #ffc107;
    color: #002147;
}

/* Desktop Hover Trigger */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* --- APPLY NOW CTA BUTTON --- */
.btn-apply {
    background-color: #ffc107; /* Gold color */
    color: #002147;
    font-size: 14px;
    border: 2px solid #ffc107;
    transition: 0.4s ease;
}

.btn-apply:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #001a38;
        padding: 15px;
    }

    .main-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .dropdown-item {
        color: #ffffff;
    }

    .btn-apply {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}

/* Toggler Icon Logic */
.custom-toggler { border: none; }
.custom-toggler .close-icon { display: none; color: white; font-size: 24px; }
.custom-toggler .open-icon { display: block; color: white; font-size: 24px; }
.custom-toggler:not(.collapsed) .open-icon { display: none; }
.custom-toggler:not(.collapsed) .close-icon { display: block; }


/* --- HERO SLIDER STYLES --- */
#heroSlider {
    position: relative;
    overflow: hidden;
}

.hero-img {
    height: 75vh; /* 75% of screen height */
    object-fit: cover; /* Prevents image stretching */
}

/* Dark overlay to make text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.4), rgba(0, 33, 71, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 25%;
    text-align: left; /* Modern left-aligned look */
}

.carousel-caption h5 {
    color: #ffc107;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.text-gold {
    color: #ffc107;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- HERO BUTTONS --- */
.btn-gold {
    background-color: #ffc107;
    color: #002147;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    transition: 0.3s;
    border: 2px solid #ffc107;
}

.btn-gold:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-light {
    border-width: 2px;
    padding: 12px 30px;
    font-weight: 700;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .hero-img {
        height: 60vh;
    }
    .carousel-caption h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-img {
        height: 50vh;
    }
    .carousel-caption {
        bottom: 15%;
        text-align: center; /* Center text on mobile */
        left: 5%;
        right: 5%;
    }
    .carousel-caption h5 {
        font-size: 0.9rem;
    }
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    .btn-gold, .btn-outline-light {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* --- SMOOTH TRANSITION (FADE EFFECT) --- */
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

/*===============COMMON TOP CSS====================*/

/* --- CHAIRMAN SECTION STYLES --- */
.chairman-section {
    background-color: #f8f9fa;
    overflow: hidden;
}

.text-navy {
    color: #002147;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
}

/* Image Wrapper with Gold Offset */
.chairman-img-wrapper {
    position: relative;
    padding: 15px;
    z-index: 1;
}

.chairman-img-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 95%;
    border: 8px solid #ffc107; /* Gold Frame */
    z-index: -1;
}

.chairman-photo {
    border-radius: 5px;
    box-shadow: 15px 15px 40px rgba(0, 33, 71, 0.15);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Badge on Image */
.chairman-experience-badge {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: #002147;
    color: white;
    padding: 15px 25px;
    border-radius: 5px 0 0 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-left: 4px solid #ffc107;
}

.chairman-experience-badge .years {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.chairman-experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quote and Text Styles */
.quote-icon {
    font-size: 2.5rem;
    color: rgba(255, 193, 7, 0.3);
}

.message-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Signature Styling */
.chairman-signature {
    border-left: 3px solid #ffc107;
    padding-left: 20px;
    margin-top: 30px;
}

/* Button Custom Style */
.btn-outline-navy {
    border: 2px solid #002147;
    color: #002147;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-navy:hover {
    background-color: #002147;
    color: #fff;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    .chairman-photo {
        height: 400px;
    }
    .chairman-img-wrapper::before {
        width: 95%;
        height: 90%;
    }
}

@media (max-width: 767.98px) {
    .chairman-section {
        text-align: center;
    }
    .chairman-img-wrapper::before {
        display: none; /* Hide frame on small screens for cleaner look */
    }
    .chairman-signature {
        border-left: none;
        padding-left: 0;
    }
    .message-text p {
        text-align: center;
    }
    .chairman-experience-badge {
        right: 15px;
        bottom: 25px;
        padding: 10px 15px;
    }
    .chairman-experience-badge .years {
        font-size: 1.4rem;
    }
}
/* --- DIRECTOR SECTION STYLES --- */
.director-section {
    position: relative;
    z-index: 1;
}

.text-navy {
    color: #002147;
}

.btn-navy {
    background-color: #002147;
    color: #fff;
    border: 2px solid #002147;
    font-weight: 600;
    transition: 0.3s;
}

.btn-navy:hover {
    background-color: transparent;
    color: #002147;
}

/* Director Image Wrapper (Right side specific) */
.director-img-wrapper {
    position: relative;
    padding-right: 20px;
}

.director-photo {
    border-radius: 10px;
    box-shadow: -20px 20px 50px rgba(0, 33, 71, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* The Gold "L" Shape behind the image */
.director-border-accent {
    position: absolute;
    top: -20px;
    right: 0;
    width: 70%;
    height: 100%;
    border-top: 10px solid #ffc107;
    border-right: 10px solid #ffc107;
    z-index: 1;
    border-radius: 0 10px 0 0;
}

/* Floating Stats Card */
.director-stats-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: #002147;
    padding: 20px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 220px;
}

/* Signature */
.director-signature {
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991.98px) {
    .director-photo {
        height: 450px;
        margin-bottom: 30px;
    }
    
    .director-img-wrapper {
        padding-right: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Reverse Column Order for Mobile so Image is on TOP */
    .flex-column-reverse {
        flex-direction: column-reverse !important;
    }
    
    .director-stats-card {
        left: 10px;
        bottom: 50px;
    }
}

@media (max-width: 767.98px) {
    .director-section {
        text-align: center;
    }
    
    .message-text p {
        text-align: center;
    }

    .director-border-accent {
        display: none; /* Simplify for mobile */
    }

    .director-stats-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin: -40px auto 20px;
        width: 80%;
    }
}
/* --- CORE VALUES SECTION STYLES --- */
.core-values {
    background-color: #fcfcfc;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-color: #ffc107;
    border-radius: 2px;
}

/* Value Card Styling */
.value-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #f1f1f1;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 33, 71, 0.1);
    border-color: #ffc107;
}

/* Icon Styling */
.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: 0.4s ease;
}

.value-card:hover .value-icon {
    background-color: #ffc107;
    color: #002147;
}

.value-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.value-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Decorative Background Number */
.value-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 33, 71, 0.03);
    line-height: 1;
    transition: 0.4s ease;
    z-index: -1;
}

.value-card:hover .value-number {
    color: rgba(255, 193, 7, 0.1);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .value-card {
        padding: 30px 20px;
    }
    .value-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 767.98px) {
    .core-values {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .value-card {
        text-align: center;
    }
    .value-icon {
        margin: 0 auto 20px;
    }
}

/* --- APPLY NOW STRIP STYLES --- */
.apply-strip {
    background-color: #f8f9fa; /* Slight background color to separate sections */
}

.apply-gradient-box {
    /* Rich Red Gradient */
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%); /* Elegant Red-Purple transition */
    /* Alternatively, for a pure fiery red gradient: */
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
    
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
}

/* Adding a subtle texture or pattern over the gradient */
.apply-gradient-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.1;
    pointer-events: none;
}

.apply-gradient-box h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* Apply Now Button Styling */
.btn-apply-now {
    background-color: #ffffff;
    color: #d32f2f;
    font-size: 1.1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-apply-now:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.text-warning {
    color: #ffc107 !important; /* Matches your gold theme */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .apply-gradient-box {
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .apply-gradient-box h2 {
        font-size: 1.5rem;
    }
}


@media (max-width: 767.98px) {
    .apply-strip {
        padding-left: 10px;
        padding-right: 10px;
    }
    .apply-gradient-box h2 {
        font-size: 1.25rem;
    }
    .btn-apply-now {
        width: 100%; /* Full width button on mobile */
        padding: 12px;
    }
    .cta-text-wrapper .badge {
        font-size: 0.75rem;
    }
}

/* --- RECOGNITION STRIP STYLES --- */
.recognition-strip {
    background-color: #ffffff;
}

.recog-logo {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%); /* Elegant black & white look */
    opacity: 0.7;
    transition: all 0.4s ease;
}

.recog-logo:hover {
    filter: grayscale(0%); /* Turns back to color on hover */
    opacity: 1;
    transform: scale(1.1);
}

/* --- QUICK HUB STYLES --- */
.quick-hub-section {
    border-bottom: 1px solid #ddd;
}

.hub-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px 10px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.hub-link-card i {
    font-size: 28px;
    color: #002147;
    margin-bottom: 10px;
    transition: 0.3s;
}

.hub-link-card span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.hub-link-card:hover {
    background: #002147;
    border-color: #002147;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 33, 71, 0.15);
}

.hub-link-card:hover i, 
.hub-link-card:hover span {
    color: #ffc107; /* Gold on Navy hover */
}

/* --- RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .recog-logo {
        max-height: 40px;
    }
    .recognition-strip h5 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .recog-logo {
        max-height: 35px;
    }
    .hub-link-card {
        padding: 15px 5px;
    }
    .hub-link-card i {
        font-size: 22px;
    }
    .hub-link-card span {
        font-size: 11px;
    }
}




/*===============COMMON FOOT CSS====================*/
/* --- FOOTER STYLES --- */
.main-footer {
    background-color: #00152e; /* Darker navy for footer */
    color: #ffffff;
    border-top: 4px solid #ffc107;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.footer-heading {
    color: #ffc107;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ffc107;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #ffc107;
    padding-left: 5px;
}

/* Social Circles */
.social-circle {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    background-color: #ffc107;
    color: #002147;
    transform: translateY(-3px);
}

/* Newsletter Input */
.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-newsletter .form-control:focus {
    box-shadow: none;
    border-color: #ffc107;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #000c1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Elements */
.back-to-top {
     position: fixed;
    bottom: 30px; /* Bottom-most element */
    right: 30px;
    display: none;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    background-color: #ffc107;
    color: #002147;
    transition: 0.3s ease;
}
.back-to-top:hover {
    background-color: #002147;
    color: #ffc107;
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 95px; /* Positioned above the Back to Top button */
    right: 30px;  /* Moved to the right */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    color: #FFF;
    box-shadow: 2px 8px 20px rgba(0,0,0,0.3);
}

/* Responsive Adjustments for Mobile */
@media (max-width: 767px) {
    .back-to-top, .whatsapp-float {
        right: 20px; /* Slightly closer to edge on mobile */
    }
    .back-to-top {
        bottom: 20px;
    }
    .whatsapp-float {
        bottom: 80px;
    }
}