/* Custom Styles for Prem Institute */

body {
    background-color: #fdfaf0; /* Light cream background */
    color: #333;
}

.site-logo {
    height: 50px;
    width: auto;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #fff9e6;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: #444;
    border-bottom: 1px solid #eee;
}

/* Banner Yellow Border */
.banner-wrapper {
    border: 5px solid #f9d616;
    padding: 0;
    overflow: hidden;
    height: auto;
    position: relative;
}

/* Section Title */
.section-title {
    text-align: center;
    font-weight: 900;
    font-size: 2.8rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Course Cards */
.course-card {
    text-align: center;
    background: white;
    padding-bottom: 10px;
    transition: transform 0.2s ease-in-out;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-img {
    width: 100%;
    height: auto;
    display: block;
}

.course-name {
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #222;
}

/* Utility Square Boxes */
.util-box {
    background: white;
    border: 1px solid #ddd;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

.util-box:hover {
    background-color: #f8f9fa;
}

.parallax-container {
    border: 5px solid #00000000; /* yellow border */
    padding: 0;
    width: 100%;
}

/* Banner wrapper */
.hero-banner {
    width: 100%;
    position: relative;
}

/* IMAGE FITS ENTIRE YELLOW BOX */
.hero-img {
    width: 100%;
    height: auto;          /* 🔥 KEY LINE */
    display: block;
    object-fit: contain;   /* Safety */
}

/* Overlay */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(253, 250, 240, 0) 0%,
        rgba(253, 250, 240, 1) 100%
    );
    pointer-events: none;
}


/* Custom Dropdown Styling */
.dropdown-menu {
    background-color: #fff9e6; /* Matches your announcement bar */
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
    color: #333;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background-color: #f9d616; /* Your signature yellow color */
    color: #000;
}

/* Optional: Show dropdown on hover instead of click (Desktop only) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Makes the sub-text look like a secondary option */
.dropdown-item.ps-4 {
    font-size: 0.75rem;
    color: #666;
    text-transform: none; /* Keeps it from being all caps if your main links are caps */
}

.dropdown-header {
    color: #000;
    font-weight: 700;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .parallax-container {
        height: 320px; /* Smaller on mobile */
    }

    #heroBanner {
        background-position: center top;
    }
}

/* Contact Section */
.contact-section {
background-color: #fdfaf0;
}


.contact-wrapper {
border-radius: 6px;
overflow: hidden;
}


.contact-form {
background: linear-gradient(135deg, #5a2d82, #3d2b7c);
padding: 40px;
}


.contact-form .form-control {
background: transparent;
border: none;
border-bottom: 1px solid rgba(255,255,255,0.5);
border-radius: 0;
color: #fff;
}


.contact-form .form-control::placeholder {
color: rgba(255,255,255,0.7);
}


.contact-form .form-control:focus {
box-shadow: none;
border-color: #f9d616;
}


.contact-info {
background: #ffffff;
padding: 40px;
}


.contact-info h4 {
font-weight: 800;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
}