/* 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====================*/

/* --- LEADERSHIP GRID STYLES --- */

.leadership-grid {
    background-color: #f8f9fa; /* Light gray background to contrast white cards */
}

.leader-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    border-left: 5px solid #002147; /* Navy accent on left */
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.1) !important;
    border-left-color: #ffc107; /* Changes to Gold on hover */
}

.leader-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffc107; /* Gold border around photo */
    background: #eee;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-message {
    font-style: italic;
    line-height: 1.6;
    font-size: 0.95rem;
}

.border-md-start {
    border-left: 1px solid #eee;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 767.98px) {
    .leader-card {
        text-align: center;
        border-left: none;
        border-top: 5px solid #002147; /* Navy accent on top for mobile */
    }
    
    .border-md-start {
        border-left: none !important;
        border-top: 1px solid #eee;
    }
    
    .leader-img-wrapper {
        width: 120px;
        height: 120px;
    }

    .display-5 {
        font-size: 1.8rem;
    }
}

/* Reusing your animated-line style if not already present */
.animated-line {
    width: 80px;
    height: 4px;
    background: #ffc107;
    margin-top: 10px;
    border-radius: 10px;
}






























/*===============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;
    }
}