/* Manora College - Main Styles (logo theme: purple, teal, gold, red) */
:root {
  --primary: #6d28d9;
  --primary-dark: #4c1d95;
  --teal: #0d9488;
  --gold: #d4af37;
  --gold-light: #fef3c7;
  --accent: #b91c1c;
  --dark: #2e1065;
  --text: #1f2937;
  --text-muted: #5b4b7a;
  --bg-light: #f5f3ff;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top bar */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar a:hover {
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  height: 86px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.college-name {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.college-name-main {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(90deg, #4c1d95, #8b5cf6, #ec4899, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.college-name-sub {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.college-motto {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}

@media (max-width: 900px) {
  .logo {
    height: 72px;
    max-width: 170px;
  }

  .college-name-main {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
  }

  .college-name-sub {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }
}

nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: var(--white);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 0.5rem 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}

.dropdown:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown ul li a {
  display: block;
  padding: 0.6rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.5) 0%, rgba(101, 46, 184, 0.55) 50%, rgba(46, 16, 101, 0.6) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero .tagline {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero .btn-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* Section */
section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background: var(--bg-light);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 1.5rem auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.75rem;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}

.card p, .card ul {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li {
  padding: 0.2rem 0;
  position: relative;
  padding-left: 1rem;
}

.card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Course cards - distance */
.course-card {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 30%);
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.course-card .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.course-card .meta {
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-card .mode {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.course-card .course-desc {
  padding: 0 1.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(109, 40, 217, 0.08);
  margin-bottom: 0.5rem;
}

/* About / Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.stat-item {
  padding: 1rem;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid a,
.footer-grid span {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Admission form */
.admission-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.required {
  color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.form-msg {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.form-msg.success {
  background: var(--gold-light);
  color: var(--primary-dark);
}

.form-msg.error {
  background: #fee2e2;
  color: var(--accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Admission banner */
.admission-banner {
  background: linear-gradient(90deg, var(--accent) 0%, #b91c1c 100%);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Floating social icons - right side */
.floating-social {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  padding: 0.5rem;
}

.floating-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-social a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.floating-social a svg,
.floating-social a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.floating-social a {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.floating-social a[href="mailto:manoracollege@gmail.com"] {
  color: #ea4335;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
  }

  .dropdown ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .floating-social {
    right: 0.5rem;
    padding: 0.5rem;
  }

  .floating-social a {
    width: 42px;
    height: 42px;
  }

  .floating-social a svg,
  .floating-social a img {
    width: 20px;
    height: 20px;
  }
}
