/* --- General Styles --- */
body {
    font-family: 'Heebo', sans-serif;
}

/* =========================================
   1. GLOBAL SETTINGS
   ========================================= */
html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrollbar */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Pushes content down so it doesn't hide behind the fixed header. */
body {
    padding-top: 140px;
}

/* =========================================
   2. HEADER SECTION (Container)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* Spacing Fixes */
    padding-top: 15px;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* =========================================
   3. TOP ROW (Logo & Donate Button)
   ========================================= */
.flex-align {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.logo {
    height: 60px;
    width: auto;
}

.btn {
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

/* =========================================
   4. NAVBAR STYLING
   ========================================= */
.header .navbar-default {
    background-color: #2b6cb0;
    border-color: #2a4365;
    border: none !important;
    margin-bottom: 0 !important;
    min-height: 50px;
    border-radius: 0 !important;
}

/* Link Styling */
.navbar-default .navbar-nav>li>a {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 20px;
    line-height: 20px;
}

/* Hover Effects */
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    color: #ffffff;
    background-color: #4299e1;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-menu>li>a {
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
}

/* Center Nav on Desktop */
@media (min-width: 768px) {
    .navbar-nav.center-nav {
        float: none;
        margin: 0 auto;
        display: inline-block;
    }

    .navbar-default .container {
        text-align: center;
    }
}

/* =========================================
   5. MOBILE RESPONSIVENESS (The Fix)
   ========================================= */
@media (max-width: 767px) {

    /* --- A. Fix Top Row (Logo & Donate on one line) --- */
    .flex-align {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Forces them side-by-side */
        justify-content: space-between !important;
        padding-bottom: 5px;
    }

    /* Resize columns to fit content */
    .header .col-xs-6 {
        width: auto !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make logo smaller */
    .logo {
        height: 40px !important;
    }

    /* Make button smaller */
    .btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
        margin-top: 0;
    }

    /* --- B. Fix Navbar (Hamburger & Collapsing) --- */

    /* Make Hamburger Lines White */
    .navbar-default .navbar-toggle .icon-bar {
        background-color: #fff;
    }

    .navbar-default .navbar-toggle {
        border-color: transparent;
        margin-right: 0;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #4299e1;
    }

    /* Navbar alignment fixes */
    .navbar-header {
        text-align: right;
        /* Puts hamburger on the right */
    }

    /* Collapsed Menu Styling */
    .navbar-nav.center-nav {
        margin: 0;
        text-align: left;
        /* Align links to left in menu */
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: #fff;
        /* White text inside mobile dropdown */
        padding: 10px 25px;
    }

    /* Reduce body padding for smaller header */
    body {
        padding-top: 110px !important;
    }
}



/* --- Internship Banner Section --- */

.internship-banner {
    position: relative;
    /* Required for the overlay to work */
    background-image: url('internshipbanner.png');
    /* Your background image */
    background-size: cover;
    /* Ensures the image covers the entire section */
    background-position: center;
    /* Centers the image */
    padding: 80px 20px;
    /* Increased padding to make the banner taller */
    color: #ffffff;
    /* Sets default text color to white for contrast */
    text-align: center;
    overflow: hidden;
    /* Prevents content from spilling out */
}

/* The semi-transparent blue overlay */
.internship-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2b6cb0;
    /* Your blue theme color */
    opacity: 0.25;
    /* Reduced opacity to 15% for a very slight tint */
    z-index: 1;
    /* Sits above the background image */
}

/* Container for all content to sit above the overlay */
.internship-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- Breadcrumb Navigation Styling --- */

.breadcrumb-container {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    /* Centers the breadcrumbs */
    margin-bottom: 40px;
}

.breadcrumb-nav {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '/';
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly more opaque for better visibility */
}

.breadcrumb-item a {
    color: #ffffff;
    /* White color for links */
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
    /* Slight fade on hover */
    text-decoration: none;
    /* Ensures no underline */
}

/* Active breadcrumb item */
.breadcrumb-item.active {
    color: #ffffff;
    /* White text for the active page */
    font-weight: 600;
    /* Make it slightly bolder */
    pointer-events: none;
}


/* --- Main Banner Text Styling --- */

.text-container {
    max-width: 800px;
    margin: 0 auto;
    /* Centers the text block */
}

.text-container h1 {
    font-size: 4.5rem;
    /* Increased font size for more impact */
    font-weight: 700;
    margin-bottom: 1.5rem;
    /* More space below the heading */
    letter-spacing: 1px;
    /* Adds space between letters for a refined look */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    /* Adds a subtle shadow to lift text from background */
}

/* Highlighted text within the heading */
.text-container .highlight-text {
    color: #ffffff;
}

.text-container p {
    font-size: 2.0rem;
    /* Larger font size for the paragraph */
    line-height: 1.7;
    /* Increased line height for readability */
    color: rgba(255, 255, 255, 0.95);
    /* Almost fully opaque white for clarity */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    /* Matching subtle shadow */
}

/* --- Internship Information Section --- */

.internship-info-section {
    padding: 100px 0;
    background-color: #ffffff;
    /* Changed to white for a cleaner look */
}

/* Text Content Styling */
.text-content h2 {
    font-size: 3.8rem !important;
    /* Made heading even larger and added !important */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.text-content .highlight-blue {
    color: #2b6cb0;
    /* Your blue theme color */
}

.text-content p {
    font-size: 1.4rem !important;
    /* Made paragraph larger and added !important */
    line-height: 1.8;
    /* Increased line height for better spacing */
    color: #4a5568;
    /* A softer, highly readable dark grey */
    margin-bottom: 1.5rem;
}

.btn-apply-now {
    display: inline-block;
    background-color: #2b6cb0;
    color: #ffffff;
    padding: 14px 40px;
    /* Made the button larger */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.2);
    /* Added a subtle shadow to the button */
}

.btn-apply-now:hover {
    background-color: #2c5282;
    /* Darker blue on hover */
    transform: translateY(-3px);
    /* Slightly more noticeable lift */
    color: #ffffff;
    text-decoration: none;
}


/* Image Collage Styling */
.image-collage {
    display: grid;
    /* A more dynamic grid layout */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
    /* Adjusted row height */
    gap: 15px;
    /* REMOVED: padding, background-color, box-shadow, and border-radius from the container */
}

.image-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images fill their grid area without distortion */
    border-radius: 12px;
    /* Softer corners on the images themselves */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-collage img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Add shadow on hover for depth */
    z-index: 10;
}

/* A more aesthetically pleasing collage arrangement */
.img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    /* Tall image on the left */
}

.img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    /* Small top-right image */
}

.img-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    /* Tall image on the right */
}

.img-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    /* Small bottom-left image */
}

/* For mobile responsiveness */
@media (max-width: 991.98px) {
    .text-content {
        margin-bottom: 50px;
        /* Add more space between text and images when stacked */
        text-align: center;
    }

    .image-collage {
        grid-template-rows: repeat(3, 180px);
        /* Adjust row height for tablets */
    }
}

@media (max-width: 576px) {
    .text-content h2 {
        font-size: 2.5rem !important;
        /* Adjusted for mobile */
    }

    .text-content p {
        font-size: 1.2rem !important;
        /* Adjusted for mobile */
    }

    .image-collage {
        /* Stacks all images vertically on small screens */
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .image-collage img {
        grid-column: auto;
        grid-row: auto;
    }
}

/* General styling for the banner section */
.donation-banner {
    background-color: #2a2a2a;
    /* Dark background color */
    color: #ffffff;
    /* White text color */
    padding: 40px 0;
    /* Reduced padding for a more compact banner */
    overflow: hidden;
}

/* Aligns the text and image side-by-side and centers them vertically */
.donation-banner .container .row {
    display: flex;
    align-items: center;
}

/* Styles for the text content on the left */
.donation-text-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Styles for the highlighted blue text */
.donation-text-content .text-highlight {
    color: #007bff;
    /* Highlight color changed to blue */
}

/* Styles for the paragraph text */
.donation-text-content p {
    font-size: 16px;
    color: #dddddd;
    margin-bottom: 30px;
}

/* Styles for the "Donate Now" button */
.btn-donate-now {
    background-color: #007bff;
    /* Button color changed to blue */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

/* Changes the button color when you hover over it */
.btn-donate-now:hover {
    background-color: #0056b3;
    /* A darker blue for the hover effect */
    color: #ffffff;
}

/* Container for the image, ensuring it is vertically centered */
.donation-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Styles for the image to ensure it scales properly */
.donation-image {
    max-width: 100%;
    /* Ensures image is responsive */
    height: auto;
    /* Maintains the aspect ratio */
    max-height: 350px;
    /* Limits the image height to prevent it from being too tall */
    display: block;
}


/* --- Site Footer Existing Styles --- */
.site-footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding-top: 60px;
    font-size: 15px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 25px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.footer-contact-info a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: #ffffff;
}

.footer-contact-info .glyphicon {
    margin-right: 10px;
    color: #4299e1;
}

.footer-social-icons {
    margin-top: 25px;
}

.footer-social-icons a img {
    height: 32px;
    width: 32px;
    margin-right: 15px;
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
}

.footer-social-icons a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.site-footer h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.developer-credit {
    text-align: right;
    font-style: italic;
    color: #A0AEC0;
}

/* Make the name clickable */
#dev-credit-link {
    color: #4299e1;
    /* Light Blue to show it is clickable */
    text-decoration: none;
    border-bottom: 1px dashed #4299e1;
    cursor: pointer;
}

#dev-credit-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.footer-bottom-bar {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #2D3748;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .col-md-2,
    .col-md-3,
    .col-md-4 {
        margin-bottom: 40px;
    }

    .developer-credit {
        text-align: center;
    }
}

/* --- NEW: Modal Popup Styles --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    backdrop-filter: blur(2px);
    /* Slight blur effect */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    /* Max width of the popup card */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    font-family: 'Heebo', sans-serif;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header (Blue part) */
.modal-header {
    background-color: #2b6cb0;
    /* Your theme blue */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #e2e8f0;
}

/* Body (White part) */
.modal-body {
    padding: 25px 20px;
    text-align: center;
    color: #333;
}

.modal-subtitle {
    color: #718096;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-contact-item {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-contact-item a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.modal-contact-item a:hover {
    text-decoration: underline;
}

.modal-contact-item .glyphicon {
    color: #4a5568;
}

/* Instagram Icon Area */
.modal-icon-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-insta-logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-insta-logo:hover {
    transform: scale(1.1);
}