/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #4a9fa6;
    --primary-teal: #E6B33D;
    --primary-navy: #163047;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--dark-gray);
    background-color: var(--white);
    font-size: 18px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}
.container-1{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}
/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-teal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-teal);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary-teal);
}
/* Submenu: Base Style */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  list-style: none;
}

/* Submenu Items */
.submenu li {
  position: relative;
  list-style: none;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.submenu a:hover {
  background-color: var(--primary-teal);
  color: #fff;
}

/* Show submenu on hover */
.has-submenu:hover > .submenu {
  display: flex;
}

/* Nested submenu (flyout) */
.submenu .submenu {
  top: 0;
  left: 100%;
  margin-left: 0px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  list-style: none;
}

/* Optional: Only show arrows for items that have further submenus */
.has-submenu > a::after {
  content: '';
  margin-left: 6px;
  font-size: 0.6rem;
  color: var(--text-primary);
}

.has-submenu > a + .submenu {
  /* This selector applies only if there is a submenu */
}

.has-submenu > .submenu .has-submenu > a::after {
  content: '▶';
  font-size: 0.65rem;
  color: var(--text-primary);
  margin-left: 6px;
}

/* Remove unnecessary arrows from items that do not have submenu */
.submenu li:not(.has-submenu) > a::after {
  content: none;
}

/* Show only when .open is active */
.has-submenu.open > .submenu {
  display: flex;
  flex-direction: column;
}
/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    padding: 1rem;
    height: 100vh;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .submenu {
    position: static;
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    box-shadow: none;
  }

  .has-submenu.open > .submenu {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}


.hero {
  background-image: url('https://getmycollege.co.in/wp-content/uploads/2025/08/chennai-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  text-align: center;
  margin-top: 80px;
}

.hero .overlay {
  background-color: rgba(0, 0, 0, 0.6); /* Adjust transparency */
  padding: 80px 0;
}

.hero-title,
.hero-subtitle,
.stat-number,
.stat-label {
  color: white;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;

    opacity: 0.9;
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
}

/* Search Section */
.search-section {
    background: var(--light-gray);
    padding: var(--spacing-lg) 0;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 18px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 159, 166, 0.1);
}

.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.clear-filters {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.clear-filters:hover {
    background: #d4a032;
    transform: translateY(-1px);
}

/* Colleges Section */
.colleges-section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    color: var(--primary-navy);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

#resultsCount {
    color: var(--medium-gray);
    font-size: 18px;
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.college-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.college-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(45deg, var(--primary-teal), var(--primary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  border-radius: 8px;
}

.college-image.no-image {
  background: linear-gradient(45deg, var(--primary-teal), var(--primary-navy)); /* already present */
}

.college-image .no-image-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.college-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.college-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.college-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.college-card-link .btn-primary {
  pointer-events: none; /* prevent button from blocking link */
}
.college-name {
    color: var(--primary-navy);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    min-height: 2.6em; /* equal space for up to 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* allow max 2 lines */
    -webkit-box-orient: vertical;
}


.college-location {
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.college-rating {
    background: var(--primary-gold);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.college-type {
    display: inline-block;
    background: var(--primary-teal);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: var(--spacing-sm) 0;
}

.college-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.college-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.college-actions {
    display: flex;
    margin-top: auto;
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--white);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background: #3a8a91;
    transform: translateY(-1px);
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}
.college-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    gap: 10px;
}

.college-header-left {
    flex: 1;
}

.college-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.college-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}
/* Why Section */
.why-section {
    background: var(--light-gray);
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    color: var(--primary-navy);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    color: var(--primary-navy);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.feature-card p {
    color: var(--medium-gray);
    font-size: 17px;
    line-height: 1.6;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2.5rem 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.75rem;
}

.footer-section {
  flex: 1 1 15%; /* Each section takes up ~15% */
}
.footer-section p{
    font-size: 16px;
}
.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: white;
}

.footer-section h3 {
  color: #E6B33D !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
        text-align: center;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .search-filters {
        align-items: stretch;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .colleges-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .college-details {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .college-name {
        font-size: 20px;
    }

    .feature-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    body {
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
.footer-section {
    flex: 1 1 100%;
    max-width: 100%;
  }
    .college-card {
        margin: 0 var(--spacing-xs);
    }

    .college-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .college-name {
        font-size: 18px;
    }

    .college-description {
        font-size: 16px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 16px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}