/* --- Universal Styles --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent horizontal padding */
}

h1, h2, h3 {
    font-weight: 700;
    color: #003366;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #000000;
    font-size: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffc107;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 1.1em;
}

.btn:hover {
    background-color: #e0a800;
}

section {
    padding: 60px 0; /* Vertical padding on sections */
}


/* --- CORRECTED Navigation Bar --- */
    .navbar {
        background-color: #ffffff;
        padding: 5px 30px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar .logo img {
        height: 7rem;
        padding-top: 5px;
    }
    .navbar .nav-links .nav-button a {
        background-color: #003366;
        color: #fff;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
    }

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
}


/* --- CORRECTED Hero Section --- */
.hero {
    background-color: #e9ecef;
    padding: 40px 0;
}

.hero .hero-image {
    text-align: center;
    margin-bottom: 40px;
}

.hero .hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 40px;
    align-items: center;
}

.hero-text-column {
    text-align: left; 
}

.hero-text-content {
    padding: 0;
}

.hero-text-content .main-headline {
    font-size: 2.5em;
    margin-bottom: 5px;
    line-height: 0.9;
    color: #000000;
    text-align: left;
    
}

.main-headline span{}

.hero-text-content .sub-headline {
    font-size: 2.2em;
    margin-top: -140px;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
}


.hero-text-content .pgdm-title {
    font-size: 9em;
    font-weight: 800;
    color: #003366;
    margin-left: -7px;
    line-height: 1;
}

.pgdm-full-form {
    /* CORRECTED: Removed fixed width and margin for responsiveness */
    display: inline-block; /* Allows padding and background to contain the text */
    padding: 5px 20px; /* Added padding for spacing */
    font-size: 1.1rem;
    background-color: #ffc107;
    font-weight: 600;
    color: #003366;
    margin-top: 10px; /* Added margin for space */
    margin-bottom: 30px;

    letter-spacing: 1px;
    border-radius: 4px; /* Optional: adds rounded corners */
}

.workingPro{
    font-size: 1.42rem;
    margin-top: -0.5rem; /* Adjusted margin */
    font-weight: 500;
}

.hero-text-content .description-text {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-container input, .form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}


/* --- SPECIALIZATIONS & GENERIC GRIDS --- */
#about, #specializations { background-color: #fff; }
#benefits, #eligibility { background-color: #f8f9fa; }

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.specialization-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.specialization-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.1);
    border-color: #ffc107;
}

.specialization-card .card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: #003366;
    transition: color 0.3s ease-in-out;
}

.specialization-card:hover .card-icon {
    color: #ffc107;
}

.specialization-card .card-title {
    font-size: 1.15em;
    font-weight: 600;
    color: #003366;
    margin: 0;
}

#specializations h2 { margin-bottom: 15px; }
#specializations .section-subtitle { margin-bottom: 50px; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* margin-top: 40px; */
    text-align: justify;
}

.grid-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.grid-item h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}


/* --- OTHER SECTIONS --- */
ul.checkmark-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

ul.checkmark-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

ul.checkmark-list li::before {
    content: '✔';
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.eligibility-box {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

#cta { background-color: #003366; color: #fff; }
#cta h2, #cta h4 { color: #fff; }

.accreditations {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.accreditations img { 
    height: 250px; 
    margin-top: -80px;
}

.cta-content { text-align: center; }


.contact-info {
    margin-top: 10px;
    font-size: 1.2em;
}

.contact-info p{
    margin-top: 10px;
    font-size: 1.2em;
}

.contact-info a {
    color: #ffc107;
    text-decoration: none;
}

.footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 30px 10px;
}


/* --- FULLY RESPONSIVE MEDIA QUERIES --- */

/* For Tablets and smaller desktops */
@media (max-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1fr; 
        gap: 50px; /* Add more gap when stacked */
    }
    .hero-text-column {
        text-align: center;
    }
    .hero-text-content .main-headline {
        text-align: center;
    }
}

/* For Mobile Phones (Portrait) */
@media (max-width: 767px) {
    section { padding: 40px 0; }
    h2 { font-size: 1.8em; }
    
    /* Navbar */
    .navbar .container {
        padding: 0 20px;
    }
    .navbar .nav-links { display: none; }
    .hamburger { display: block; }
    .navbar .logo img { height: 3.5rem; } /* 56px */

    /* Hero Text Scaling */
    .hero-text-content .main-headline { font-size: 2.2em; }
    .hero-text-content .sub-headline { font-size: 1.6em; }
    .hero-text-content .pgdm-title { font-size: 7em; }
    
    /* Other Sections */
    .grid-container { grid-template-columns: 1fr; }
    .accreditations { gap: 30px; }
    .accreditations img { height: 120px; margin-top: -50px; }
    .specialization-grid {
      /* This is your existing rule for the two-column layout */
      grid-template-columns: 1fr 1fr; 
      gap: 15px;
    }

    /* --- ADD THIS NEW RULE --- */
    /* It targets the last card ONLY if it's an odd-numbered item 
       (e.g., the 3rd, 5th, 7th, or 9th card) */
    .specialization-grid .specialization-card:nth-child(odd):last-child {
      /* This tells the last card to span the full width of the grid */
      grid-column: 1 / -1;
    }

    /* Your other mobile styles for .specialization-card, etc. go here */
    .specialization-card {
      padding: 20px 15px;
    }
    .specialization-card .card-title {
      font-size: 1em;
    }
    .specialization-card .card-icon {
      width: 40px;
      height: 40px;
      margin-bottom: 15px;
    }
    
    #career-enhancement .section-title {
        font-size: 1.5rem !important;
    }

    .logo-scroller {
        gap: 40px; /* Reduce gap on mobile */
        animation-duration: 6s !important; /* Make it scroll a bit faster on smaller screens */
    }

    .logo-item img {
        height: 40px; /* Make logos slightly smaller on mobile */
    }
    
    .logo-scroller-wrapper {
    max-width: 1000px;
    margin: 0 auto;

    /* --- THIS IS THE FIX --- */
    /* This line hides the overflowing content and removes the horizontal scrollbar. */
    overflow: hidden;

    /* This creates the fade-out effect on the edges */
    -webkit-mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
    mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
  }

  }

  #career-enhancement {
    background-color: #f8f9fa; /* A light, clean background */
    padding: 80px 0;
    text-align: center;
}

#career-enhancement .section-title {
    font-size: 2.5em;
    color: #003366; /* Your theme's blue */
    margin-bottom: 15px;
}

#career-enhancement .section-subtitle {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* --- The Logo Scroller --- */

.logo-scroller-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    /* This creates the fade-out effect on the edges */
    -webkit-mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
    mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
}

.logo-scroller {
    display: flex;
    gap: 60px; /* Space between logos */
    align-items: center;
    /* This is the animation that makes it scroll */
    animation: scrollAnimation 30s linear infinite;
}

.logo-scroller-wrapper:hover .logo-scroller {
    /* This pauses the animation when the user hovers over it */
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 70px; /* Standardized height for all logos */
    width: auto; /* Width adjusts automatically */
    filter: grayscale(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0); /* Brings logo to full color on hover */
    opacity: 1;
    transform: scale(1.1);
}


/* The animation keyframes */
@keyframes scrollAnimation {
    from {
        transform: translateX(0);
    }
    to {
        /* This moves the scroller left by the width of the first set of logos */
        transform: translateX(-50%);
    }
}


  .inquiry-title {
    font-size: 1.5rem;
    font-weight: 500;
  }



  

/* For Small Mobile Phones */
@media (max-width: 480px) {
    .container { padding: 0 15px; } /* Reduce padding on smallest screens */
    h2 { font-size: 1.6em; }
    .navbar .logo img { height: 3.5rem; padding-top: 5px;} /* 48px */
    
    /* Hero Text Scaling */
    .hero-text-content .main-headline { font-size: 1.8em; margin-bottom: 1.2rem !important;}
    .hero-text-content .sub-headline { font-size: 1.3em; }
    .hero-text-content .pgdm-title { font-size: 5.5em; justify-content: center;} /* Drastically reduce for small screens */
    .pgdm-full-form { font-size: 0.58rem; margin-right: 2px; margin-top: -500px; padding: 5px 10px; margin-bottom: 35px;}
    .workingPro { font-size: 1rem; margin-top: -0.2rem; font-weight: 700; }
    .hero-text-content .description-text { font-size: 0.95em; }
    .rotated-mba{margin-top: -35px;}
    .inquiry-title{font-size: 1.2rem; font-weight: 600;}
    .inquiry-detail{font-size: 1rem;}
    .sub-headlineone{font-size: 4.5rem !important; margin-bottom: 7rem;}
    .section-subtitle{font-size: 1.5rem;}
}




    /* --- PLACEMENT STATISTICS SECTION (COMPLETE & CORRECTED) --- */

    /* This is the main section wrapper */
    #placement-stats {
        background-color: #003366;
        padding: 80px 0;
        color: #fff;
    }

    #placement-stats .stats-section-title {
        color: #fff;
        font-size: 2.5em;
        text-align: center;
        margin-bottom: 15px;
    }

    #placement-stats .stats-section-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1em;
        max-width: 700px;
        margin: 0 auto 50px;
        text-align: center;
    }

    /* --- Base Style for the Grid (Desktop First) --- */
    #placement-stats .stats-grid {
        display: grid;
        /* This is the default 4-column layout for desktops */
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    /* Base style for the cards */
    #placement-stats .stat-card {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 30px 25px;
        text-align: center;
        transition: all 0.3s ease;
    }

    #placement-stats .stat-card:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
    }

    #placement-stats .stat-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
        color: #ffc107; /* Yellow */
    }

    #placement-stats .stat-number {
        font-size: 3.5em;
        font-weight: 700;
        line-height: 1.1;
        color: #fff;
    }

    #placement-stats .stat-label {
        font-size: 1em;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 10px;
    }


    /* --- RESPONSIVE OVERRIDES (MUST COME AFTER BASE STYLES) --- */

    /* For Tablets and Smaller Desktops */
    @media (max-width: 992px) {
        /* This overrides the 4-column layout and creates the 2x2 grid */
        #placement-stats .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* For Mobile Phones */
    @media (max-width: 767px) {
        #placement-stats {
            padding: 60px 0;
        }

        #placement-stats .stats-section-title {
            font-size: 2em;
        }
        
        #placement-stats .stats-grid {
            /* This rule ensures it stays 2x2 on mobile and reduces the gap */
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        /* This makes the cards and their content smaller to fit */
        #placement-stats .stat-card {
            padding: 25px 15px;
        }

        #placement-stats .stat-icon {
            width: 45px;
            height: 45px;
        }

        #placement-stats .stat-number {
            font-size: 2.5em; /* Reduced for mobile */
        }

        #placement-stats .stat-label {
            font-size: 0.9em;
        }
    }