/* General Styles */
:root {
  --primary-color: #0077B6;
  --secondary-color: #00B4D8;
  --background-color: #F8F9FA;
  --text-color: #343A40;
  --card-bg: #FFFFFF;
  --footer-bg: #212529;
  --glow-color: rgba(0, 119, 182, 0.5);
  --light-blue-bg: #E9F7FB;
}
* { box-sizing: border-box; }
/* === हा नवीन विभाग आहे === */
html, body {
    overflow-x: hidden;
}
/* === नवीन विभाग इथे संपतो === */

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* ही नवीन आणि महत्त्वाची ओळ आहे */
  position: relative; /* Safari/Chrome मोबाईल बग टाळण्यासाठी */
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Header --- */
header {
  background: var(--card-bg);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
  z-index: 999;
  /* position: sticky आणि top: 0 काढून टाकले आहेत */
  transition: all 0.3s ease; /* ॲनिमेशनसाठी */
}

/* हा नवीन क्लास आहे, जो JavaScript वापरेल */
.sticky-header {
    position: fixed; /* आता fixed वापरू */
    top: 0;
    left: 0;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* === लोगो आणि टायटलसाठी नवीन स्टाईल्स इथे आहेत === */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    margin-right: 12px; /* लोगो आणि टायटलमध्ये जागा सोडतो */
    transition: transform 0.3s ease;
}

.logo-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}
.logo-container:hover .logo-name {
    color: var(--primary-color);
}
/* === नवीन स्टाईल्स इथे संपल्या === */


/* नेव्हिगेशन लिंक्सची स्टाईल जशी आहे तशीच राहील */
nav a {
  margin-left: 1.5rem; 
  text-decoration: none; 
  color: var(--text-color);
  font-weight: 500; 
  padding-bottom: 5px;
  transition: color 0.3s, border-bottom 0.3s;
}
nav a:hover, nav a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
/* --- Main Content --- */
main {
  flex-grow: 1;
  padding: 2rem 1rem;
  animation: fadeIn 1s ease-in;
}
.container {
  max-width: 900px; margin: 0 auto;
  padding: 2.5rem; border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUpIn 1.2s ease-out;
}
.container h1, .container h2 {
    text-align: center; color: var(--primary-color);
    margin-top: 0; margin-bottom: 2rem;
}

/* --- Buttons & Forms --- */
.btn {
  display: inline-block; padding: 0.9rem 2rem;
  background-color: var(--primary-color); color: white !important;
  text-decoration: none; cursor: pointer; border: none;
  font-weight: bold; border-radius: 8px; font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }
.button-group-unified {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.button-group-unified .btn {
    width: 100%;
    max-width: 300px; 
}

label { display: block; margin-top: 1.2rem; font-weight: 600; font-size: 0.9rem; }
input, select {
  width: 100%; padding: 0.8rem; margin-top: 0.5rem;
  border-radius: 8px; border: 1px solid #ccc; font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--glow-color);
}

/* --- Final Compact & Responsive Predictor Page and Results Card Design --- */

/* Main container for the predictor page */
.predictor-page-main-new {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* The white card holding the form */
.predictor-card-new {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}
/* ... (तुमचा predictor-card-new चा बाकीचा कोड जसा आहे तसाच ठेवा) ... */


/* --- Final Responsive Predictor Page and Results Card Design --- */

/* Main container for the predictor page */
.predictor-page-main-new {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* The white card holding the form */
.predictor-card-new {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}
/* ... (तुमचा predictor-card-new चा बाकीचा कोड जसा आहे तसाच ठेवा) ... */


/* --- Final Responsive Results Card Styling --- */

.results {
    margin-top: 2rem;
    padding: 0;
}

.college-card {
  background-color: var(--card-bg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; 
}

.college-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.15), 0 0 20px rgba(0, 119, 182, 0.1);
}

/* College Name (Title) */
.college-card strong.college-title {
    display: block; 
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e8ed;
}

/* Default style for MOBILE (Label-on-top) */
.college-card p {
    margin: 0.7rem 0 0 0;
    line-height: 1.2;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.college-card p strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0077B6;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Media Query for DESKTOP View --- */
/* This code will apply ONLY when the screen is wider than 768px */
/* --- Media Query for DESKTOP View --- */
@media (min-width: 768px) {
    .college-card p {
        display: flex;
        justify-content: flex-start; /* 'space-between' ऐवजी 'flex-start' */
        align-items: baseline;
    }

    .college-card p strong {
        display: inline;
        margin-bottom: 0;
        margin-right: 0.5rem; /* लेबल आणि व्हॅल्यूमधील अंतर (8px) */
    }
}
/* --- Footer --- */
footer {
  background: var(--footer-bg); color: #adb5bd;
  padding: 3rem 2rem 1rem 2rem; margin-top: auto;
  width: 100%;
}
.footer-container {
  display: flex; flex-wrap: wrap; justify-content: space-around;
  gap: 2rem; text-align: center; max-width: 1200px;
  margin: 0 auto; padding-bottom: 2rem;
  border-bottom: 1px solid #495057;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--card-bg); margin-bottom: 1rem; }
.footer-col p, .footer-col a {
  color: #adb5bd; text-decoration: none; margin-bottom: 0.5rem;
  display: block; transition: color 0.3s;
}
.footer-col a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; padding-top: 1.5rem; font-size: 0.9rem; }
/* ... (tumcha sarv CSS code jsa ahe tsa theva) ... */

/* --- Styles for Admission Chance and Choice Code --- */
.chance-high {
    color: #198754; /* Green */
    font-weight: bold;
}

.chance-medium {
    color: #FFC107; /* Orange/Yellow */
    font-weight: bold;
}

.chance-low {
    color: #DC3545; /* Red */
    font-weight: bold;
}

.choice-code {
    background-color: #d1ecf1; /* Light blue background */
    color: #0c5460; /* Darker blue text */
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

/* --- Icon Styling --- */

/* Style for icons inside labels */
label i.ti {
  margin-right: 8px; /* Adds space between icon and text */
  vertical-align: middle; /* Aligns icon nicely with the text */
  position: relative;
  top: -1px; /* Minor adjustment for perfect vertical alignment */
  color: var(--primary-color); /* Makes the icon color same as the primary theme color */
}

/* Style for icons inside buttons */
button i.ti {
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* --- Final Animated Hero Slider Styling (with Multiple Backgrounds) --- */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    color: white;
    overflow: hidden;
    /* मुख्य कंटेनरचा बॅकग्राउंड आता साधा गडद रंग असेल (जेव्हा इमेज लोड होत असेल) */
    background-color: #023047; 
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* प्रत्येक स्लाईडला स्वतःचा बॅकग्राउंड असेल */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* प्रत्येक स्लाईडला गडद करण्यासाठी ग्रेडियंट ओव्हरले */
    box-shadow: inset 0 0 0 2000px rgba(2, 48, 71, 0.7);
    
    /* Animation Properties */
    opacity: 0;
    transform: scale(1.05); /* एक सूक्ष्म झूम इफेक्ट */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    pointer-events: none;
}

/* Style for the currently visible slide */
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* === प्रत्येक स्लाईडला स्वतंत्र इमेज देणे === */
.hero-slide:nth-child(1) {
    background-image: url('../images/slide-1-bg.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../images/slide-2-bg.jpg');
}
.hero-slide:nth-child(3) {
    background-image: url('../images/slide-3-bg.jpg');
}
.hero-slide:nth-child(4) {
    background-image: url('../images/slide-4-bg.jpg');
}
.hero-slide:nth-child(5) {
    background-image: url('../images/slide-5-bg.jpg');
}
/* in future add more slides like this 
.hero-slide:nth-child(3) {
    background-image: url('../images/slide-3-bg.jpg');
}
*/
/* === Hero Content Styling === */
.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeIn 1s ease-out 0.5s both;
}

.hero-slide p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Re-using your large button style */
.btn-primary-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(138, 132, 221, 0.4);
    animation: fadeIn 1s ease-out 1.1s both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    .hero-slide p {
        font-size: 1.1rem;
    }
}
/* Features Section (Why Choose Us) */
.features-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #F8F9FA;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 119, 182, 0.15);
}

.feature-icon {
    font-size: 3rem; /* 48px */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 2rem;
    text-align: center;
}
.how-it-works-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f1f3f5;
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
}
.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-content { text-align: left; }
.step-content h3 { margin: 0 0 0.5rem 0; color: var(--text-color); }
.step-content p { margin: 0; color: #6c757d; }
.step-arrow { font-size: 2rem; color: #ced4da; }
@media (max-width: 768px) {
    .step-arrow { display: none; }
}


/* Testimonials Section */
.testimonials-section {
    padding: 4rem 2rem;
    background: var(--light-blue-bg);
    text-align: center;
}
.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.testimonial-card p {
    font-style: italic;
    color: #495057;
    margin: 0 0 1rem 0;
}
.testimonial-card h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Final CTA Section */
.final-cta-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--footer-bg);
    color: white;
}
.final-cta-section h2 {
    color: white;
    font-size: 2.5rem;
}
.final-cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer Icon alignment */
.footer-col i.ti {
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}


/* --- Selection Page - Professional Styling (Upgraded for Glow Effect) --- */

.selection-page-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 250px); /* Adjust based on your header/footer height */
}

.selection-header {
    text-align: center;
    margin-bottom: 4rem;
}

.selection-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.selection-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.selection-grid-new {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem; /* Adds more space between cards */
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    margin-top: 2rem;
}

.exam-card-square {
    width: 280px;
    height: 300px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The Glow Effect */
.exam-card-square:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px var(--glow-color), 0 0 50px var(--glow-color);
    border-color: var(--primary-color);
}

/* Optional: Adding a subtle background pattern */
.exam-card-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.exam-card-icon-new {
    font-size: 4rem; /* 64px */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.exam-card-square:hover .exam-card-icon-new {
    transform: scale(1.1);
}

.exam-card-square h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.exam-card-square p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
}
/* --- New Predictor Page Design --- */

.predictor-page-main-new {
    max-width: 800px;
    margin: 3rem auto;
     padding: 0 0.05rem; 
}

.predictor-card-new {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem; /* Add space for results below */
}

.predictor-card-new h2.card-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 2rem 0;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group label i {
    font-size: 1.1rem;
    margin-right: 8px;
    color: var(--primary-color);
}

/* Overriding general input/select for this specific design */
.form-group input, .form-group select {
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
}

.form-group input:focus, .form-group select:focus {
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.predict-button-container {
    margin-top: 2.5rem;
    text-align: center;
}

.predict-button-container .btn {
    width: 100%;
    max-width: 350px;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Overriding general .results style for new layout */
.results {
    margin-top: 0;
    padding: 0;
}
/* --- Responsive Navigation Menu --- */

/* Initially hide the hamburger menu on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle i {
    font-size: 2rem; /* 32px */
}


/* --- Media Query for Mobile Devices --- */
/* This code will apply ONLY when the screen width is 768px or less */
@media (max-width: 768px) {
    
    header {
        position: relative; /* Needed for absolute positioning of nav */
    }

    /* Show the hamburger menu button */
    .menu-toggle {
        display: block;
    }

    /* Hide the navigation links by default on mobile */
    nav#main-nav {
        display: none;
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #e0e0e0;
        flex-direction: column; /* Stack links vertically */
    }

    /* This class will be added by JavaScript to show the menu */
    nav#main-nav.nav-active {
        display: flex; 
    }

    /* Style for links inside the mobile menu */
    nav#main-nav a {
        padding: 1rem 2rem;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    nav#main-nav a:last-child {
        border-bottom: none;
    }
    nav#main-nav a.active, nav#main-nav a:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-color);
        border-bottom-color: var(--light-blue-bg); /* Match the background */
    }
}
/* --- FAQ Section Styling --- */
.faq-section {
    padding: 4rem 2rem;
    background: var(--light-blue-bg);
    text-align: center;
}

.faq-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question .ti {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question .ti {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    margin: 0;
    color: #495057;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust if your answer is longer */
}

/* --- Counselling Page Styling --- */

.counselling-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.counselling-hero {
    background: linear-gradient(rgba(0, 80, 130, 0.8), rgba(0, 40, 70, 0.9)), url('https://source.unsplash.com/random/1600x900/?meeting,desk') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 0 0 20px 20px;
}

.counselling-hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.counselling-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.counselling-features {
    text-align: center;
    padding: 4rem 2rem;
}

.counselling-features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.counselling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.counselling-feature-item {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}
.counselling-feature-item:hover {
    transform: translateY(-5px);
}
.counselling-feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.counselling-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-blue-bg);
    border-radius: 12px;
    margin: 0 2rem;
}

.counselling-cta h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}
.counselling-cta p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 2rem;
}

.counselling-cta .btn-primary-large i {
    margin-left: 8px;
    transition: transform 0.3s;
}
.counselling-cta .btn-primary-large:hover i {
    transform: translateX(5px);
}
/* --- Counselling Ad Section on Index Page --- */

.counselling-ad-section {
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    margin: 4rem 0; /* Adds space above and below the section */
}

.ad-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.ad-icon {
    color: white;
    font-size: 3.5rem; /* 56px */
    flex-shrink: 0;
}

.ad-text {
    flex-grow: 1;
    color: white;
}

.ad-text h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: white; /* Override default h2 color */
    font-weight: 700;
}

.ad-text p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.ad-button {
    flex-shrink: 0;
}

/* A special style for an outline button */
.btn.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.btn.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px); /* Keep the hover effect */
}

/* Responsive adjustments for the ad section */
@media (max-width: 768px) {
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    .ad-text {
        margin-bottom: 1rem;
    }
}

/* --- Note for MHT-CET Category Explanation (Upgraded) --- */

.category-note {
    background-color: var(--light-blue-bg);
    border-left: 4px solid var(--secondary-color); /* Using secondary color for variety */
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    color: #495057;
}

.note-header {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.note-header i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 8px;
}

.note-list {
    list-style-type: none; /* Removes default bullet points */
    padding-left: 0;
    margin: 0 0 0.5rem 0;
}

.note-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

/* Creating custom bullet points for a cleaner look */
.note-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.note-list li strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 4px;
}

.note-footer {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0.5rem 0 0 0;
    padding-top: 0.5rem;
    border-top: 1px dashed #cdebf3;
}
/* --- Responsive adjustments for smaller screens --- */

@media (max-width: 576px) {
    /* मोबाईल स्क्रीनसाठी प्रेडिक्टर पेजला कमी padding देऊ */
    .predictor-page-main-new {
        padding: 0 0.5rem; 
    }

    /* मोबाईल स्क्रीनसाठी कार्डच्या आतली padding कमी करू */
    .predictor-card-new {
        padding: 1.5rem 1rem;
    }

    /* निकालांच्या कार्डमधील padding सुद्धा कमी करू */
    .college-card {
        padding: 1rem;
    }
    
    /* निकालांमधील मजकूराचा आकार थोडा कमी करू */
    .college-card p {
        font-size: 0.95rem;
    }

    .college-card strong.college-title {
        font-size: 1.15rem;
    }
}
/* --- Admission Guide Page Styling --- */

.guide-page {
    background-color: #fff;
}

.guide-hero {
     /* होम पेजच्या Hero Section सारखा रंग */
    background: linear-gradient(rgba(0, 50, 100, 0.7), rgba(0, 25, 50, 0.8)), url('https://source.unsplash.com/random/1600x900/?education,books') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.guide-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.guide-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.guide-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.guide-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.guide-section:last-child {
    border-bottom: none;
}

.guide-section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
}
.guide-section h2 i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 2.5rem;
}

/* --- Timeline (Upgraded Design) --- */
.timeline {
    position: relative;
    max-width: 600px; /* Limits the width for better readability */
    margin: 0 auto; /* Centers the timeline */
}

.timeline-item {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center items */
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 30px; /* Space for the line and circle */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e5ec; /* Faint line color */
}

.timeline-item:first-child::before { top: 12px; /* Start line from the middle of the first circle */ }
.timeline-item:last-child::before { height: 12px; /* End line at the middle of the last circle */ }

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    width: 120px; /* Adjusted width */
    flex-shrink: 0;
    position: relative;
    padding-right: 20px;
    text-align: right;
    line-height: 1.3; /* Added for better line spacing */
}


.timeline-date::after {
    content: '';
    position: absolute;
    left: -37px; /* Position on the main line */
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    width: 100%;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
/* Styling for completed timeline steps */
.timeline-item.completed .timeline-date {
    color: #0d8a68; /* A darker green color for the date */
}

.timeline-item.completed .timeline-date::after {
    background-color: #198754; /* Green background for the circle */
    border-color: #198754; /* Green border for the circle */
}

.timeline-item.completed .timeline-content {
    background-color: #e8f5e9; /* Light green background for the content */
    border-left: 3px solid #198754;
}
/* CAP Steps */
.cap-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.cap-step { display: flex; align-items: center; background: #f8f9fa; padding: 1rem; border-radius: 8px; }
.cap-step span { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); margin-right: 1rem; }
.cap-step p { margin: 0; font-weight: 500; }

/* Document Grid */
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.document-item { text-align: center; background: #f8f9fa; padding: 1.5rem; border-radius: 8px; }
.document-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.document-item p { margin: 0; font-weight: 500; }

/* Accordion */
.candidature-accordion .accordion-item { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 0.5rem; }
.accordion-header { width: 100%; background: none; border: none; padding: 1rem 1.5rem; font-size: 1.1rem; font-weight: 600; text-align: left; cursor: pointer; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 1.5rem; color: #495057; }
.accordion-item.active .accordion-content { max-height: 300px; padding-bottom: 1rem; }

/* --- Modern Table Styling --- */
.table-container {
    overflow-x: auto;
    border: 1px solid #1979da;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(156, 142, 207, 0.05);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table looks good even on slightly smaller screens before scrolling */
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

thead {
    background-color: #f8f9fa; /* A professional light grey */
}

th {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.2s ease-in-out;
}

tbody tr:last-child td {
    border-bottom: none; /* Removes the border from the last row */
}

tbody tr:hover {
    background-color: var(--light-blue-bg); /* Adds a hover effect */
}

td {
    color: #495057;
}
.timeline-content small {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}
/* --- Final Chatbot Styling (Desktop Fullscreen & Mobile Popup) --- */

/* Toggler Button (Floating Icon) */
/* Toggler Button (Floating Icon) with Animation */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.4);
    background-color: var(--card-bg);
    padding: 10px;
    
    /* --- ॲनिमेशनसाठी नवीन प्रॉपर्टीज --- */
    transition: all 0.3s ease; /* Hover इफेक्टसाठी */
    animation: pulse 2s infinite; /* ही नवीन ओळ आहे */
}

/* हा नवीन @keyframes नियम आहे, जो ॲनिमेशन कसे काम करेल हे ठरवतो */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 119, 182, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
    }
}

/* जेव्हा वापरकर्ता माउस नेईल, तेव्हा ॲनिमेशन थांबावे */
.chatbot-toggler:hover {
    animation: none; /* ॲनिमेशन थांबवतो */
    transform: scale(1.1); /* Hover इफेक्ट चालू ठेवतो */
}
.toggler-logo {
    width: 100%;
    height: auto;
    transition: transform 0.3s, opacity 0.3s;
}
.close-icon {
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0;
    transform: rotate(90deg);
    transition: opacity 0.3s, transform 0.3s;
}
/* Show close icon and hide logo when chatbot is open */
.show-chatbot .chatbot-toggler .toggler-logo,
.show-chatbot-fullscreen .chatbot-toggler .toggler-logo {
    opacity: 0;
    transform: rotate(-90deg);
}
.show-chatbot .chatbot-toggler .close-icon,
.show-chatbot-fullscreen .chatbot-toggler .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Chatbot Container (Base styles for both modes) */
.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 35px;
    width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    
    /* --- हे नवीन आणि महत्त्वाचे बदल आहेत --- */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    transform: scale(0.8); /* Changed from 0.5 for a smoother animation */
    visibility: hidden; /* ही सर्वात महत्त्वाची ओळ आहे */
    
    z-index: 1000;
    overflow: hidden;
}

/* Show the chatbot when the class is added */
.show-chatbot .chatbot-container,
.show-chatbot-fullscreen .chatbot-container {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible; /* ही सर्वात महत्त्वाची ओळ आहे */
}
/* Popup Chatbot (Mobile/Default) */
.show-chatbot .chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 35px;
    width: 420px;
    border-radius: 16px;
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    transform-origin: bottom right;
}

/* Fullscreen Chatbot (Desktop) */
.show-chatbot-fullscreen .chatbot-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.show-chatbot-fullscreen .chatbox {
    height: calc(100vh - 145px); /* Full height minus header and input */
}
.show-chatbot-fullscreen .chatbot-container header .close-btn {
    display: block; /* Show close button on fullscreen header */
}

/* Common Chatbot elements styling */
.chatbot-container header {
    padding: 12px 20px;
    position: relative;
    
    /* --- हे नवीन बदल आहेत --- */
    background: #ffffff; /* बॅकग्राउंड पांढरा केला */
    border-bottom: 1px solid #f0f0f0; /* एक हलकी वेगळेपणाची रेषा */
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.1); /* हा निळा ग्लो इफेक्ट आहे */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* नवीन हेडर कंटेंटसाठी स्टाईल */
.header-content {
    display: flex;
    align-items: center;
    gap: 10px; /* लोगो आणि नावामध्ये जागा */
}

.header-logo {
    height: 40px; /* उंची थोडी वाढवली */
    width: auto; /* रुंदी आपोआप ऍडजस्ट होईल */
    border-radius: 0; /* गोलाकारपणा काढून टाकला */
    background-color: transparent; /* पांढऱ्या बॅकग्राउंडची गरज नाही, कारण इमेज स्वतःच पारदर्शक आहे */
    object-fit: contain; /* इमेज पूर्ण दिसेल आणि कापली जाणार नाही */
}
.chatbot-container header h2 {
    font-size: 1.4rem;
    color: var(--primary-color); /* रंग पांढऱ्यावरून निळा केला */
    margin: 0;
}
.chatbot-container header .close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.9;
    color: var(--text-color); /* रंग पांढऱ्यावरून गडद राखाडी केला */
}
.chatbot-container header .close-btn:hover {
    opacity: 1;
}
.chatbox {
    overflow-y: auto;
    height: 400px;
    padding: 20px 20px 120px;
}

/* Chat Messages Styling */
.chatbox .chat { display: flex; list-style: none; align-items: flex-start; gap: 10px; }
.chatbox .chat p { white-space: pre-wrap; padding: 12px 16px; border-radius: 18px; max-width: 85%; font-size: 0.95rem; margin: 0; line-height: 1.5; }
.chatbox .incoming { margin-bottom: 20px; width: 100%; }
.chatbox .incoming .chatbot-logo {
    width: 25px; /* रुंदी थोडी वाढवली */
    height: auto; /* उंची आपोआप ऍडजस्ट होईल */
    border-radius: 0; /* गोलाकारपणा काढून टाकला */
    object-fit: contain; /* इमेज पूर्ण दिसेल आणि कापली जाणार नाही */
    margin-top: 0; /* वरची मार्जिन काढली */
    align-self: flex-start; /* लोगो नेहमी वरच्या बाजूला राहील */
}
.chatbox .incoming p { background: transparent; color: #333; border-radius: 0; padding: 0; max-width: 100%; }
.chatbox .outgoing { margin: 20px 0; justify-content: flex-end; }
.chatbox .outgoing p { background: var(--primary-color); color: #fff; border-radius: 18px 18px 0 18px; }

/* Rich Content (from Markdown) Styling */
.chatbox .incoming p h1, .chatbox .incoming p h2, .chatbox .incoming p h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem 0; color: var(--text-color); }
.chatbox .incoming p p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.chatbox .incoming p table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; border: 1px solid #e0e0e0; }
.chatbox .incoming p th, .chatbox .incoming p td { border: 1px solid #e0e0e0; padding: 8px 10px; text-align: left; }
.chatbox .incoming p th { background-color: #f8f9fa; font-weight: 600; }
.chatbox .incoming p ol, .chatbox .incoming p ul { padding-left: 0; list-style-type: none; margin-bottom: 1rem; }
.chatbox .incoming p li { margin-bottom: 0.8rem; line-height: 1.6; display: flex; flex-direction: row; align-items: flex-start; }
.chatbox .incoming p li::before { display: inline-block; min-width: 20px; margin-right: 8px; font-weight: 600; color: var(--primary-color); }
.chatbox .incoming p ol { counter-reset: list-counter; }
.chatbox .incoming p ol li::before { counter-increment: list-counter; content: counter(list-counter) ". "; }
.chatbox .incoming p ul li::before { content: "• "; }

/* Chat Input Area */
.chat-input { display: flex; gap: 10px; align-items: center; position: absolute; bottom: 0; width: 100%; background: #fff; padding: 10px 20px; border-top: 1px solid #ddd; }
.chat-input textarea { width: 100%; border: 1px solid #ccc; border-radius: 8px; outline: none; resize: none; max-height: 180px; padding: 12px 15px; font-size: 1rem; line-height: 1.4; transition: border-color 0.2s ease; }
.chat-input textarea:focus { border-color: var(--primary-color); }
.chat-input span#send-btn { color: var(--primary-color); cursor: pointer; font-size: 2rem; opacity: 0.7; transition: opacity 0.2s ease; }
.chat-input textarea:valid ~ span { opacity: 1; }

/* Option Buttons */
.options-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.option-btn { background-color: #f0f0f0; color: #333; border: 1px solid #ddd; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; }
.option-btn:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.option-btn:disabled, .option-btn.selected { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); cursor: not-allowed; opacity: 0.9; }

/* Responsive for Mobile (Always Fullscreen) */
@media (max-width: 768px) {
    .show-chatbot .chatbot-container,
    .show-chatbot-fullscreen .chatbot-container {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        border-radius: 0;
        transform: scale(1); opacity: 1; pointer-events: auto;
    }
    .chatbot-toggler { right: 20px; bottom: 20px; }
    .chatbox { height: calc(100% - 130px); }
}
