/* Govt. Model Sanskriti Sr. Sec School - Styles */
/* Mobile-first, responsive design */

:root {
  --primary-color: #4a80ec;
  --primary-hover: #004de5;
  --footer-bg: #0984e3;
  --text-color: #3a3a3a;
  --heading-color: #2f3f50;
  --bg-light: #fafafa;
  --white: #ffffff;
  --border-color: #eaeaea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--heading-color);
  margin-top: 0;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 700; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1em;
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Header - compact like live site (logo 50x48) */
.site-header {
  background: linear-gradient(135deg, #0984e3 0%, #0066b3 100%);
  padding: 0.4em 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.site-logo img {
  max-width: 50px;
  height: 48px;
  width: auto;
  display: block;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: var(--white);
  border: none;
  padding: 0.5em 1em;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-color);
}

.menu-toggle:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Navigation */
.main-nav {
  display: none;
  width: 100%;
}

.main-nav.active {
  display: block;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-menu a {
  display: block;
  padding: 0.75em 1em;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu .current a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.menu-item-has-children > a {
  position: relative;
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.2);
}

.sub-menu li {
  border-bottom: none;
}

.sub-menu a {
  padding-left: 1.5em;
  font-size: 0.95em;
}

/* Desktop nav */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  
  .main-nav {
    display: block;
    width: auto;
  }
  
  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  
  .nav-menu li {
    border: none;
    position: relative;
  }
  
  .nav-menu > li > a {
    padding: 0.5em 1em;
  }
  
  .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
  }
  
  .menu-item-has-children:hover .sub-menu {
    display: block;
  }
  
  .sub-menu a {
    color: var(--text-color);
    padding: 0.6em 1em;
  }
  
  .sub-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
  }
}

/* Hero section - matches original: Picture1 bg + gradient overlay */
.hero-section {
  position: relative;
  background-color: var(--white);
  background-image: url("../images/Picture1.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  padding: 150px 20px;
  text-align: center;
}

@media (max-width: 480px) {
  .hero-section {
    padding: 80px 12px 140px;
  }
  .hero-section .btn {
    margin-bottom: 0.5em;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(9,132,227,0.85) 40%, rgba(0,59,177,0.98) 100%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

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

@media (min-width: 768px) {
  .hero-section {
    padding: 250px 0;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
}

.hero-section p {
  margin-bottom: 1.5em;
  color: var(--white);
  opacity: 1;
}

.btn {
  display: inline-block;
  padding: 0.75em 2em;
  background: var(--white);
  color: #0984e3;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn:hover {
  background: rgba(255,255,255,0.84);
  color: #0984e3;
}

/* Stats section - overlaps hero, white cards with shadow */
.stats-section {
  padding: 0 1em;
  background: var(--bg-light);
  margin-top: 0;
}

@media (max-width: 480px) {
  .stats-section {
    padding: 0 12px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: -80px auto 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 599px) {
  .stats-grid {
    margin-top: -50px;
  }
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: -120px;
    gap: 0;
  }
}

.stat-box {
  text-align: center;
  padding: 30px 30px 15px;
  margin: 0 0 25px;
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

@media (max-width: 480px) {
  .stat-box {
    padding: 20px 16px 12px;
    margin: 0 0 12px;
  }
}

.stat-box:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

@media (min-width: 600px) {
  .stat-box {
    margin: 20px;
  }
}

.stat-box .stat-icon {
  font-size: 42px;
  color: #0984e3;
  margin-bottom: 10px;
  display: block;
}

.stat-box .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  display: block;
  margin-bottom: 10px;
}

.stat-box p {
  margin: 0;
  font-size: 0.95em;
}

/* Content sections */
.content-section {
  padding: 2em 1em;
}

@media (max-width: 480px) {
  .content-section {
    padding: 1.25em 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 1.5em;
}

@media (max-width: 480px) {
  .section-title {
    margin-bottom: 1em;
    padding: 0 12px;
  }
}

/* Two column layout - 33% notice / 66% about (original) */
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start; /* Notice board height = content only, not stretched to match About */
}

@media (max-width: 480px) {
  .two-column {
    gap: 1.25em;
  }
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: 40% 60%;
  }
}

/* Notice board - modern card design */
.notice-board {
  margin-left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(9, 132, 227, 0.12);
  overflow: hidden;
  border: 1px solid rgba(9, 132, 227, 0.08);
}

@media (min-width: 768px) {
  .notice-board {
    margin-left: 25px;
  }
}

.notice-board-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--footer-bg) 100%);
  color: var(--white);
  padding: 1.25em 1.5em;
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.notice-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.notice-board-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  border: none;
  padding: 0;
}

.notice-items {
  padding: 1.25em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

@media (max-width: 480px) {
  .notice-board-header,
  .notice-items {
    padding: 1em 12px;
  }
}

.notice-item {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 1em 1.25em;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.notice-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.notice-item-link .notice-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.notice-item-link .notice-link:hover {
  color: var(--primary-color);
}

.notice-item-link .notice-link i {
  color: #e74c3c;
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.notice-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--white);
  margin-bottom: 0.5em;
}

.notice-badge-pdf {
  background: #e74c3c;
}

.notice-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

.notice-link {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About Us column - white card, generous padding */
.about-column {
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 15px 30px 5px rgba(0,0,0,0.06);
  padding: 50px 20px 30px;
  margin: 50px 20px 0;
}

@media (max-width: 480px) {
  .about-column {
    padding: 24px 12px 20px;
    margin: 20px 0 0;
  }
}

@media (min-width: 768px) {
  .about-column {
    padding: 80px 70px 80px 80px;
    margin: 0 30px 0 30px;
  }
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  padding: 0.75em 0;
  border-bottom: 1px solid var(--border-color);
}

.notice-list li:last-child {
  border-bottom: none;
}

/* Message from key persons - light blue bg #E5F2F8 */
.messages-section {
  background: #E5F2F8;
  margin-top: 30px;
  padding: 13px 0 0;
}

@media (max-width: 480px) {
  .messages-section {
    padding: 1em 0 0;
    margin-top: 20px;
  }
}

.messages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .messages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.message-card {
  background: var(--white);
  padding: 30px 20px 20px 30px;
  border-radius: 5px;
  box-shadow: 0 15px 30px 5px rgba(0,0,0,0.06);
  margin: 0 20px 20px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .message-card {
    padding: 20px 12px 16px;
    margin: 0 0 16px;
  }
}

@media (min-width: 768px) {
  .message-card:first-child {
    margin: 0 20px 40px;
  }
}

.message-card .message-image {
  width: 221px;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.message-card .message-content {
  font-size: 14px;
  font-style: italic;
  margin-top: 10px;
}

.message-card .name {
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 1em;
  font-style: normal;
}

.message-card .role {
  font-size: 0.9em;
  color: #666;
  font-style: normal;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

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

.data-table th {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.data-table tr:hover {
  background: var(--bg-light);
}

.table-wrapper {
  overflow-x: auto;
  margin: 1em 0;
}

/* Responsive table - card layout on mobile (no horizontal scroll) */
@media (max-width: 767px) {
  .table-wrapper {
    overflow-x: visible;
    margin: 0 -12px;
    padding: 0 12px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .data-table tr {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }

  .data-table td {
    border: none;
    padding: 0.4em 0;
    padding-left: 0;
    position: relative;
    padding-left: 45%;
    font-size: 0.9rem;
  }

  .data-table-teachers td:nth-child(1)::before { content: "S.No: "; }
  .data-table-teachers td:nth-child(2)::before { content: "Name: "; }
  .data-table-teachers td:nth-child(3)::before { content: "Subject: "; }
  .data-table-teachers td:nth-child(4)::before { content: "Designation: "; }

  .data-table-students td:nth-child(1)::before { content: "S.No: "; }
  .data-table-students td:nth-child(2)::before { content: "Class: "; }
  .data-table-students td:nth-child(3)::before { content: "Sections: "; }
  .data-table-students td:nth-child(4)::before { content: "Students: "; }

  .data-table-disclosure td:nth-child(1)::before { content: "Sr no: "; }
  .data-table-disclosure td:nth-child(2)::before { content: "Information: "; }
  .data-table-disclosure td:nth-child(3)::before { content: "Details: "; }

  .data-table-result td:nth-child(1)::before { content: "Sr no: "; }
  .data-table-result td:nth-child(2)::before { content: "Year: "; }
  .data-table-result td:nth-child(3)::before { content: "Registered: "; }
  .data-table-result td:nth-child(4)::before { content: "Passed: "; }
  .data-table-result td:nth-child(5)::before { content: "Pass %: "; }
  .data-table-result td:nth-child(6)::before { content: "Remarks: "; }

  .data-table td::before {
    font-weight: 600;
    position: absolute;
    left: 0;
    width: 42%;
    padding-right: 8px;
    color: var(--heading-color);
    font-size: 0.85rem;
  }

  .data-table td:first-child {
    padding-top: 0.5em;
  }

  .data-table td:last-child {
    padding-bottom: 0.5em;
  }
}

/* Page header (for inner pages) */
.page-header {
  background: linear-gradient(135deg, #0984e3 0%, #0066b3 100%);
  color: var(--white);
  padding: 2em 1em;
  text-align: center;
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.25em 12px;
  }
}

.page-header h1 {
  color: var(--white);
  margin: 0;
}

.page-header p {
  margin: 0.5em 0 0;
  opacity: 0.95;
}

/* Main content */
.main-content {
  padding: 2em 1em;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.25em 12px;
  }
}

.main-content h2, .main-content h3, .main-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.main-content h4 {
  font-size: 1.1rem;
}

.main-content p {
  margin-bottom: 1em;
}

.main-content ul {
  margin: 0.5em 0 1em 1.5em;
  padding: 0;
}

.main-content li {
  margin-bottom: 0.5em;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0984e3 0%, #0066b3 100%);
  color: var(--white);
  padding: 2em 1em;
  text-align: center;
  margin-top: 2em;
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1.5em 12px;
  }
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.site-footer p {
  margin: 0;
  opacity: 0.95;
}

/* Google Reviews section */
.google-reviews-section {
  background: var(--white);
}

.google-reviews-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.google-place-header {
  display: flex;
  gap: 1.25em;
  align-items: flex-start;
  margin-bottom: 2em;
  padding: 1.5em;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

@media (max-width: 480px) {
  .google-place-header {
    padding: 1em 12px;
    margin-bottom: 1.5em;
  }
}


.google-place-left img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.google-place-right {
  flex: 1;
}

.google-place-name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 0.5em;
}

.google-place-name:hover {
  text-decoration: underline;
}

.google-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.25em;
}

.google-rating {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading-color);
}

.google-stars {
  color: #e7711b;
  font-size: 1rem;
}

.google-review-count {
  margin: 0 0 1em;
  font-size: 0.9rem;
  color: #666;
}

.google-reviews-btn {
  display: inline-block;
  padding: 0.5em 1.25em;
  font-size: 0.95rem;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25em;
}

@media (min-width: 600px) {
  .google-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.google-review-card {
  background: var(--bg-light);
  padding: 1.25em 1.5em;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

@media (max-width: 480px) {
  .google-review-card {
    padding: 1em 12px;
  }
}

.google-review-stars {
  color: #e7711b;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

.google-review-text {
  margin: 0 0 0.75em;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

.google-review-author {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Alumni section - 2x2 grid, image aside layout like live site */
.alumni-section {
  background: var(--bg-light);
}

.alumni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}

@media (min-width: 768px) {
  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }
}

.alumni-card {
  background: var(--white);
  padding: 30px 20px 20px 30px;
  border-radius: 5px;
  box-shadow: 0 15px 30px 5px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .alumni-card {
    padding: 20px 12px 16px;
  }
}

.alumni-content {
  font-size: 14px;
  font-style: italic;
  margin-bottom: 1em;
  flex: 1;
}

.alumni-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}

.alumni-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(39,44,108,0.1);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .alumni-image {
    width: 100px;
    height: 100px;
  }
}

.alumni-details {
  flex: 1;
}

.alumni-card .name {
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 0.25em;
}

.alumni-card .role {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* Top Achievements - image gallery with hover overlay */
.achievements-section {
  padding: 20px;
}

@media (max-width: 480px) {
  .achievements-section {
    padding: 1em 0;
  }
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
}

@media (min-width: 600px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.achievement-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--white);
}

.achievement-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.achievement-card .gallery-thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.achievement-card:hover .gallery-thumb {
  transform: scale(1.05);
}

.achievement-card .gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 1em;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.25s;
}

.achievement-card:hover .gallery-caption,
.achievement-card:focus-within .gallery-caption {
  opacity: 1;
}

/* On mobile, show caption below image (no overlay) */
@media (max-width: 599px) {
  .achievement-card .gallery-caption {
    position: static;
    background: rgba(0,0,0,0.05);
    color: var(--text-color);
    padding: 0.75em;
    opacity: 1;
  }
  .achievement-card .gallery-caption h5 {
    color: var(--heading-color);
  }
}

.achievement-card .gallery-caption h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* Hidden initially, shown when "See more" is clicked */
.achievement-card.achievement-more {
  display: none;
}

.achievement-card.achievement-more.achievement-visible {
  display: block;
}

/* See more / See less buttons */
.achievement-load-more {
  text-align: center;
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  gap: 0.75em;
  flex-wrap: wrap;
}

.btn-load-more,
.btn-load-less {
  background: #333;
  color: var(--white);
  border: none;
  padding: 0.6em 2em;
  border-radius: 0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-load-more:hover,
.btn-load-less:hover {
  background: #555;
  color: var(--white);
}

/* Curriculum page */
.curriculum-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  max-width: 400px;
  margin: 2em 0;
}

@media (min-width: 500px) {
  .curriculum-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.curriculum-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25em 1.5em;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--text-color);
  transition: box-shadow 0.2s, transform 0.2s;
}

.curriculum-card:hover {
  box-shadow: 0 4px 16px rgba(9, 132, 227, 0.2);
  color: var(--primary-color);
}

.curriculum-class {
  font-weight: 600;
  font-size: 1.1rem;
}

.curriculum-arrow {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Contact page */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin-bottom: 2.5em;
}

@media (min-width: 600px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-block {
  background: var(--white);
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-info-block h3 {
  margin: 0 0 0.75em;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.contact-info-block h3 i {
  color: var(--primary-color);
}

.contact-info-block p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-block a {
  font-weight: 500;
}

.contact-map-wrapper {
  margin-bottom: 2.5em;
}

.contact-map-wrapper h2 {
  margin: 0 0 1em;
  font-size: 1.5rem;
}

.contact-map-embed {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  .contact-map-embed {
    height: 400px;
  }
}

.contact-map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-map-link {
  margin: 0.75em 0 0;
  text-align: center;
}

.contact-map-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .contact-form-wrapper,
  .contact-info-block {
    padding: 1.25em 12px;
  }
  .contact-map-wrapper {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px;
  }
}

.contact-form-wrapper h2 {
  margin: 0 0 1.5em;
  font-size: 1.5rem;
}

.contact-form .form-row {
  margin-bottom: 1.25em;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4em;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form .required {
  color: #e74c3c;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .form-actions {
  margin-top: 1.5em;
  margin-bottom: 0;
}

.btn-submit {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75em 2em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Video embed */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 1em auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hosted video - HTML5 video element */
.video-wrapper.video-hosted {
  padding-bottom: 0;
  height: auto;
}

.video-wrapper.video-hosted video {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* YouTube thumbnail - click to open on YouTube */
.youtube-thumb-link {
  display: block;
  max-width: 800px;
  margin: 1em auto;
  text-decoration: none;
  color: inherit;
}

.youtube-thumb-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.youtube-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.youtube-thumb-link:hover .youtube-thumb {
  transform: scale(1.02);
}

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.youtube-thumb-link:hover .youtube-play-btn {
  background: rgba(255, 0, 0, 1);
}

.youtube-watch-text {
  display: block;
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: var(--primary-color);
}
