/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- UPDATED: CSS Variables for New Colors --- */
:root {
    --primary-color: #00695c; /* Teal for Headings and Navbar */
    --secondary-color: #e53935; /* Red for Top Bar */
    --light-gray: #f4f7f9;
    --dark-gray: #333;
    --text-color: #555;
}

/* --- General & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 70px; 
}

.section-light {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* --- UPDATED: Top Bar & Header --- */
.top-bar {
    background-color: var(--secondary-color); /* Updated to Red */
    padding: 10px 0;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end; /* Aligns items to the right */
}
.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #ddd;
}

.main-header {
    background: #fff;
    padding: 25px 0;
}



/*.header-container {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*}*/

.header-container {
    display: flex;
    align-items: center;
    justify-content: center; /* college name center */
    position: relative;
    padding: 20px 60px; /* extra padding for logo left side space */
    gap: 20px;
}

.logo-container {
    position: absolute;
    left: 30px;  /* logo left side */
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    width: 110px;
}


}
.title-container {
    text-align: center;
}
.title-container h1 {
    color: var(--primary-color); /* Updated to Teal */
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.title-container p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* --- UPDATED: Navbar & Hero Section --- */
.navbar {
    background-color: var(--primary-color); /* Updated to Teal */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
.navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* --- UPDATED: Hero Section CSS for Cropping --- */

/* The container now gets a fixed height to create the "crop" effect */
.hero-section {
    height: calc(100vh - 70px); /* 70px = navbar height */
    overflow: hidden;
    position: relative;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Moves image slightly up, adjust 20% as needed */
    display: block;
}

/* --- End of Updated CSS --- */

/* --- About Us Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1.2;
}
.about-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- Director's Message Section --- */
.director-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.director-text {
    flex: 1.5;
}
.director-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.director-name {
    margin-top: 20px;
    font-size: 1.1rem;
}
.director-image {
    flex: 1;
    text-align: center;
}
.director-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Streams Section --- */
/* --- Science Stream Section --- */
.science-section {
  padding: 80px 20px;
  background-color: #006957; 
  color: #fff;
  text-align: center;
}

.science-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.science-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px 30px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.science-card .card-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: #ffdd57; /* golden yellow highlight */
}

.science-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.science-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.explore-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ffdd57;
  color: #1e3c72;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.explore-btn:hover {
  background: #ffc107;
  color: #000;
}

@media (max-width: 768px) {
  .science-section {
    padding: 60px 15px;
  }
  .science-card {
    padding: 25px 20px;
  }
  .science-card h3 {
    font-size: 1.5rem;
  }
  .science-card p {
    font-size: 1rem;
  }
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-info .fas {
    color: var(--secondary-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}
.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #c0312d;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #ccc;
    padding-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-left h3 {
    color: white;
}
.footer-social a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}
.map-container iframe {
    border-radius: 8px;
}
.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}
.footer-bottom strong {
    color: #fff;
}

/* --- Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .streams-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .about-content, .director-content {
        flex-direction: column;
    }
    .director-content .director-text {
        order: 2;
    }
    .director-content .director-image {
        order: 1;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .title-container {
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .map-container {
        max-width: 400px;
        margin: 0 auto;
    }
}
/mobile responsive/
/* =============================================== */
/* --- MOBILE RESPONSIVENESS --- */
/* =============================================== */

/* --- For Tablets and Smaller Desktops (max-width: 992px) --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem; /* Make titles slightly smaller */
    }

    /* Stack multi-column layouts into a single column */
    .about-content,
    .director-content {
        flex-direction: column;
        gap: 30px;
    }

    /* For the director section, show the image first on mobile */
    .director-content .director-text {
        order: 2;
    }
    .director-content .director-image {
        order: 1;
    }

    /* Make the 3-column stream cards stack into one column */
    .streams-container {
        grid-template-columns: 1fr;
    }

    /* Stack the contact info and form */
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* --- For Mobile Phones (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Reduce side padding on mobile */
    }

    /* --- Header --- */
    .header-container {
        flex-direction: column; /* Stack logo and title vertically */
        gap: 15px;
        text-align: center;
    }
    .title-container {
        text-align: center; /* Center the college name */
    }
    .title-container h1 {
        font-size: 1.5rem; /* Adjust title font size */
    }

    /* --- Hero Section --- */
    .hero-section {
        height: 40vh; /* Reduce the height of the hero image on mobile */
        min-height: 250px;
    }

    /* --- Sections --- */
    .section {
        padding: 60px 0; /* Reduce top/bottom padding for sections */
    }
    .about-text h3,
    .director-text h3 {
        font-size: 1.8rem; /* Adjust sub-heading sizes */
    }
    
    /* --- Footer --- */
    .footer-content {
        flex-direction: column; /* Stack footer sections vertically */
        text-align: center;
        gap: 30px;
    }
    .map-container {
        max-width: 400px; /* Limit map width */
        margin: 0 auto; /* Center the map */
    }
    .footer-bottom p {
        font-size: 0.8rem; /* Make copyright text smaller */
        padding: 0 10px;
    }
}










/* ====== Dropdown visual improvements for junior_college_index.html ====== */

.site-navbar {
  width: 100%;
  background: #d9cf5f;     /* page header yellow */
  border-top: 8px solid #0b6a60; /* teal top stripe like your screenshot */
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.04);
  font-family: "Poppins", Arial, sans-serif;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 18px;
}

/* base list styling */
/*.nav-list {*/
/*  list-style: none;*/
/*  display: flex;*/
/*  gap: 14px;*/
/*  align-items: center;*/
/*  margin: 0;*/
/*  padding: 6px 0;*/
/*  padding-left:200px ;*/
/*  justify-content: center;*/
/*}*/

.nav-list {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 0;
  margin: 0;
  justify-content: center; 
}



/* parent items */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 12px 10px;
  color: #0b3b34;           /* dark green text */
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 16px;
}

/* FIX 1: Navbar must always be on top and clickable */
.site-navbar {
    width: 100%;
    background: #0b6a60 !important;  /* pure green navbar */
    position: relative;
    z-index: 999999 !important;      /* ensure navbar is highest layer */
}

/* FIX 2: Make sure nothing blocks hover */
header, .header-top, .top-bar, .logo-row {
    position: relative;
    z-index: 1;
}
.hero-section, .banner, .main-image, img {
    position: relative;
    z-index: 0 !important;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 26px;
    align-items: center;
    padding: 0;
    margin: 0;
    /* --- ही ओळ जोडा --- */
    justify-content: center;
    /* -------------------- */
}

/* NAV LINKS */
.nav-link {
    color: white !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 10px;
}

/* ---------------------------
   VERTICAL DROPDOWN (fixed)
---------------------------- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    display: flex;
    flex-direction: column;

    min-width: 220px;
    background: white !important;        /* dropdown is now white */
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);

    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease-in-out;

    z-index: 999999 !important;          /* dropdown ABOVE hero always */
}

/* dropdown items */
.dropdown-item {
    padding: 12px 18px;
    color: #0b3b34;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0,0,0,0.06);
}

/* SHOW MENU ON HOVER */
.nav-item:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}




.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}























/* ===== Facilities Dropdown Fix ===== */

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;

  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);

  display: none;        /* 🔴 hidden by default */
  flex-direction: column;
  z-index: 9999;
}

.dropdown-item {
  padding: 12px 16px;
  color: #0b3b34;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
  background: #f2f2f2;
}

/* SHOW dropdown ONLY on hover */
.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}


























