/* ============================================
   KANIRAM GIRLS DEGREE COLLEGE – Main Styles
   ============================================ */

:root {
  --primary:    #1a4d8c;
  --primary-dk: #0d2d57;
  --secondary:  #e8821a;
  --accent:     #ffd166;
  --bg-light:   #f0f5fc;
  --bg-section: #eaf0f9;
  --text:       #333;
  --text-light: #666;
  --border:     #c8d8ed;
  --white:      #ffffff;

  /* highlight colours */
  --hl-orange: #ffe0b2;
  --hl-pink:   #fce4ec;
  --hl-green:  #e8f5e9;
  --hl-blue:   #e3f2fd;
  --hl-yellow: #fff9c4;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

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

ul { list-style: none; }

/* ── HIGHLIGHTS ── */
.hl-orange { background: var(--hl-orange); color: #b84f00; padding: 1px 5px; border-radius: 3px; }
.hl-pink   { background: var(--hl-pink);   color: #b5004b; padding: 1px 5px; border-radius: 3px; }
.hl-green  { background: var(--hl-green);  color: #1b6b1b; padding: 1px 5px; border-radius: 3px; }
.hl-blue   { background: var(--hl-blue);   color: #0a4d8c; padding: 1px 5px; border-radius: 3px; }
.hl-yellow { background: var(--hl-yellow); color: #7a6000; padding: 1px 5px; border-radius: 3px; }

/* ── TOP BAR ── */
.topbar {
  background: linear-gradient(90deg, var(--primary-dk), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 7px 16px;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

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

/* ── HEADER ── */
header {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 40px;
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-logo { flex-shrink: 0; }

.header-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.header-info h1 {
  font-size: 24px;
  color: var(--primary);
  line-height: 1.3;
}

.header-info .tagline {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 3px;
}

.header-info .address {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.girls-badge {
  display: inline-block;
  background: var(--hl-pink);
  color: #b5004b;
  border: 1px solid #f48fb1;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 6px;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--white);
  padding: 13px 18px;
  font-size: 14px;
  display: block;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--accent);
  transition: left 0.2s, right 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }

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

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::before {
  content: ' ▾';
  font-size: 11px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dk);
  min-width: 210px;
  z-index: 200;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: #ddd;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover { background: var(--secondary); color: var(--white); }

.nav-dropdown:hover .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── NOTICE TICKER ── */
.ticker-wrap {
  background: #fff8ee;
  border-top: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-label {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 2px 14px;
  font-size: 12px;
  margin-right: 18px;
  vertical-align: middle;
  border-radius: 2px;
  font-weight: 600;
}

.ticker-track {
  display: inline-block;
  vertical-align: middle;
  font-size: 13px;
  color: var(--primary);
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 55%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  padding: 58px 20px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.07;
}

.page-hero h2 {
  font-size: 32px;
  position: relative;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 22px;
  opacity: 0.92;
  position: relative;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn { display: inline-block; padding: 11px 28px; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-white  { background: var(--white);     color: var(--primary);   }
.btn-white:hover  { background: #ffe8d0; }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #c0622e; }

/* ── SECTION TITLES ── */
.section-title {
  text-align: center;
  padding: 44px 0 14px;
  font-size: 24px;
  color: var(--primary);
}

.section-title small {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  font-weight: normal;
  margin-top: 4px;
}

.section-title::after {
  content: '';
  display: block;
  width: 55px;
  height: 3px;
  background: var(--secondary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ── RAJASTHAN DIVIDER ── */
.raj-divider {
  background: linear-gradient(90deg, var(--primary-dk), var(--secondary), var(--primary-dk));
  height: 5px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 40px 50px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 24px 20px;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.card .card-icon { font-size: 38px; margin-bottom: 12px; }
.card h3 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.card p  { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  transition: color 0.2s;
}
.card a.card-link:hover { color: var(--primary); border-color: var(--primary); }

/* Course card special */
.course-card {
  width: 260px;
  border-top-color: var(--secondary);
  cursor: pointer;
}

.course-card:hover { border-top-color: var(--primary); }

.course-card .badge {
  display: inline-block;
  background: var(--hl-orange);
  color: #b84f00;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── STATS BAND ── */
.stats-band {
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 10px 0;
}

.stat-item {
  text-align: center;
  padding: 22px 40px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ── NOTICE LIST ── */
.notice-list { list-style: none; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.notice-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #fde8d8;
  font-size: 14px;
  gap: 10px;
  transition: background 0.15s;
}

.notice-list li:last-child { border-bottom: none; }
.notice-list li:hover { background: var(--bg-light); }

.notice-list .notice-text { flex: 1; }

.notice-meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.badge-new    { background: #e8821a; color: #fff; }
.badge-result { background: #2e7d32; color: #fff; }
.badge-imp    { background: #c62828; color: #fff; }

.notice-badge {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
}

.notice-date { font-size: 12px; color: #999; }

/* ── ABOUT SNIPPET ── */
.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img {
  flex: 0 0 320px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-img img { width: 100%; height: 220px; object-fit: cover; }

.about-text { flex: 1; min-width: 260px; }
.about-text h2 { color: var(--primary); font-size: 22px; margin-bottom: 14px; }
.about-text p  { font-size: 14px; line-height: 1.9; color: #555; margin-bottom: 12px; }

/* ── LOCAL STRIP ── */
.local-strip {
  background: #0c1f3f;
  color: #d0e4ff;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 40px;
}

.local-item { max-width: 190px; font-size: 13px; line-height: 1.7; }
.local-item .li-icon  { font-size: 30px; display: block; margin-bottom: 6px; }
.local-item .li-title { color: var(--accent); font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }

/* ── FOOTER ── */
footer {
  background: #06112a;
  color: #999;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
  padding: 40px 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,209,128,0.25);
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 13px;
  line-height: 2;
  color: #aaa;
}

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

.footer-bottom {
  text-align: center;
  padding: 14px;
  font-size: 12px;
  border-top: 1px solid #0e2248;
}

.footer-bottom span { color: var(--secondary); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg-section);
  padding: 10px 40px;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

.page-content h2 { color: var(--primary); font-size: 20px; margin: 28px 0 12px; }
.page-content p  { font-size: 14px; line-height: 1.9; color: #555; margin-bottom: 14px; }

/* ── TABLE ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}

.info-table th {
  background: var(--primary);
  color: var(--white);
  padding: 11px 16px;
  text-align: left;
}

.info-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.info-table tr:nth-child(even) td { background: var(--bg-light); }
.info-table tr:hover td { background: #ffe8d0; }

/* ── CONTACT CARDS ── */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  padding: 20px 40px 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  flex: 1;
  min-width: 230px;
  max-width: 280px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.contact-card h3 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--secondary);
}

.contact-card p { font-size: 13.5px; line-height: 2.1; color: #555; }

.helpline-card {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  border: none;
  color: var(--white);
}

.helpline-card h3 { color: var(--accent); border-color: rgba(255,209,128,0.4); }
.helpline-card p  { color: rgba(255,255,255,0.9); }

.helpline-number {
  display: block;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 1px;
  margin: 3px 0;
}

/* ── MAP PLACEHOLDER ── */
.map-placeholder {
  background: #e8e0d5;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  gap: 8px;
  margin-top: 16px;
}

.map-placeholder .map-icon { font-size: 40px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 16px 20px; gap: 14px; }
  .header-info h1 { font-size: 18px; }

  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex; }
  .nav-links a { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 20px; }
  .nav-links a::after { display: none; }
  .dropdown-menu { position: static; display: none !important; padding-left: 16px; }
  .nav-dropdown:hover .dropdown-menu { display: none !important; }
  .hamburger { display: flex; }

  .page-hero h2 { font-size: 22px; }
  .cards-grid { padding: 16px 16px 40px; }
  .about-row, .contact-grid { padding: 20px 16px; }
  .page-content { padding: 24px 16px 40px; }
  .breadcrumb { padding: 10px 16px; }
  .local-strip { padding: 20px 16px; }
  .footer-inner { padding: 30px 20px 20px; }
  .stat-item { padding: 18px 24px; }
  .hero-btns { flex-direction: column; align-items: center; }

  .about-img { flex: 0 0 100%; }
}
