@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
  --primary: #1a3c6e;
  --primary-light: #2c528e;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-gray: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* Header */
header {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.sticky {
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2444 100%);
  color: var(--white);
  padding: 160px 0 100px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-bar {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  background: var(--white);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  outline: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.search-bar button {
  padding: 12px 30px;
  border-radius: 6px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Study Goal Cards */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: -40px;
}

.goal-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.goal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.goal-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.goal-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.goal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.goal-card ul {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.goal-card ul li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.goal-card ul li::before {
  content: "→";
  color: var(--accent);
  margin-right: 8px;
}

/* Features */
.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-box {
  background: var(--bg-gray);
  padding: 40px 30px;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-box:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.feature-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.feature-link::after {
  content: "→";
  margin-left: 5px;
  transition: var(--transition);
}

.feature-box:hover .feature-link::after {
  transform: translateX(5px);
}

/* Universities Grid */
.univ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.univ-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.univ-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.univ-img {
  height: 200px;
  background-color: var(--primary-light);
  background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-align: center;
  padding: 20px;
}

.univ-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.univ-type {
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.univ-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.univ-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.univ-stats {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  font-size: 0.9rem;
}

.univ-fee strong {
  color: var(--text-dark);
  display: block;
}

.univ-rating {
  color: #f59e0b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Ranking Table Section */
.ranking-section {
  background: var(--white);
}

.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--bg-gray);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.ranking-table-wrapper {
  overflow-x: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.ranking-table th, .ranking-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ranking-table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--primary);
}

.ranking-table tr:hover {
  background: rgba(249, 115, 22, 0.05);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
}

.college-name-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.college-logo-placeholder {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

.college-name-cell div strong {
  display: block;
  color: var(--primary);
}

.college-name-cell div span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Study Abroad Section */
.abroad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.country-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.country-flag {
  font-size: 4rem;
  margin-bottom: 15px;
}

.country-card h3 {
  margin-bottom: 10px;
}

.country-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.country-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-links a {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.country-links a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-wa { background: #25D366; }
.float-mail { background: #EA4335; }
.float-call { background: var(--primary); }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .features-grid, .univ-grid { grid-template-columns: repeat(2, 1fr); }
  .abroad-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero { padding: 120px 0 80px; }
  .features-grid, .univ-grid { grid-template-columns: 1fr; }
  .abroad-grid, .footer-grid { grid-template-columns: 1fr; }
  .floating-actions { bottom: 20px; right: 20px; gap: 10px; }
  .float-btn { width: 45px; height: 45px; font-size: 1.25rem; }
}

/* Base Page Header for subpages */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2444 100%);
  color: white;
  padding: 140px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: white;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Detail Page Specific */
.detail-banner {
  background-color: var(--primary-light);
  background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 160px 0 60px;
}

.college-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.college-title-area h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.college-meta {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.detail-tabs {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 80px;
  z-index: 90;
}

.detail-tabs .container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
}

.detail-tab {
  padding: 20px 0;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.detail-tab.active, .detail-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.detail-content {
  padding: 60px 0;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: var(--bg-gray);
  font-weight: 600;
}

/* Lists */
.step-list {
  padding-left: 20px;
}

.step-list li {
  margin-bottom: 15px;
  position: relative;
}

.step-list li::marker {
  color: var(--accent);
  font-weight: bold;
}

/* Contact Page Specific */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.contact-info {
  margin-bottom: 40px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.office-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.office-card h4 {
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Filters */
.filters-bar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-family: inherit;
  outline: none;
}

/* Reviews */
.review-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 600;
}

.review-rating {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
