/* General Body Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fff;
  color: #1a1a1a;
}

/* Navigation Styles */
nav {
  background: #002a8f;
  padding: 0.6rem 0; /* Reduced from 1rem to compensate for larger logo */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  height: 55px; /* Increased from 40px */
}

/* Unified navigation list selector */
nav ul,
nav ul.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #ff4d6d;
}

/* Mobile Navigation Toggle */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  /* Unified mobile navigation list selector */
  nav ul,
  nav ul.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #002a8f;
    position: absolute;
    top: 64px;
    left: 0;
    padding: 1rem 0;
  }

  /* Unified mobile navigation active state */
  nav ul.active,
  nav ul.nav-links.active {
    display: flex;
  }

  /* Unified mobile navigation list item selector */
  nav ul li,
  nav ul.nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Header Styles (specific to havana_sligo.html) */
header {
  height: 400px;
  background: linear-gradient(135deg, #1c1ca0, #e2110f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* Hero Section Styles (specific to index.html and events.html) */
.hero-section {
  background: linear-gradient(135deg, #1c1ca0, #e2110f);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Styling for the button within the hero section */
.hero-section .cta-button {
  background-color: #ffffff; /* White background */
  color: #ff0000;            /* Red text color */
}

.hero-section .cta-button:hover {
  background-color: #e0e0e0; /* Very light grey background on hover */
  color: #ff0000;            /* Keep text red on hover */
  border-color: #e0e0e0;     /* Border color matches background on hover for subtlety */
}

/* General Section Styles */
section {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  color: #002a8f;
  margin-bottom: 2.5rem; /* Standardized h2 margin */
}

/* Specific section background colors */
#what-we-teach { /* From index.html */
  background: #f0f8ff;
}

/* About Section Specific Styles (from index.html) */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    text-align: left;
  }
  .about-image {
    flex: 1;
    max-width: 50%;
  }
  .about-text {
    flex: 1.5;
    text-align: left;
  }
}

/* Class Card Styles (used in index.html for "What We Teach" and havana_sligo.html for "Meet the Artists") */
.lineup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.class-card {
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
  border-bottom: 4px solid #ff4d6d;
}

.class-card:hover {
  /* transform: translateY(-5px); */
}

@media (min-width: 600px) {
  .class-card {
    max-width: 45%;
  }
}

@media (min-width: 1024px) {
  .class-card {
    max-width: 280px;
  }
}

.class-card img {
  display: block;
  margin: 0 auto 1rem auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #002a8f;
}

.class-card h4 {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.5rem;
  font-weight: 700;
  color: #002a8f;
}

.class-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Icon Styling for Class Cards */
.class-card i {
  font-size: 3em;
  color: #ff4d6d;
  margin-bottom: 0.5em;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center; /* This is the correct line to add/ensure */
}

.event-card {
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.event-card.event-poster-display img {
  height: auto;
  object-fit: contain;
  padding: 0;
  margin-bottom: 1rem;
}

.event-grid .event-card.event-poster-display {
  max-width: 450px;
  margin: 0 auto;
}

.event-card h3 {
  font-size: 1.6rem;
  color: #002a8f;
  margin-bottom: 0.8rem;
}

.event-card .event-date,
.event-card .event-location {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.event-card .event-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.event-card .cta-button {
  margin-top: auto;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}

.past-event-card {
  opacity: 0.7;
  filter: grayscale(30%);
}

.event-card .event-social-link {
  margin-top: 1.2rem;
}

.event-card .event-social-link a {
  color: #002a8f;
  font-size: 2.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.event-card .event-social-link a:hover {
  color: #ff4d6d;
}

/* Event Date (from havana_sligo.html, but also general styling) */
.event-date {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Schedule Table Styles (for desktop views on both index.html and havana_sligo.html) */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2rem;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: none;
}

.schedule-table th {
  background: #002a8f;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-table th:first-child {
  border-top-left-radius: 10px;
}

.schedule-table th:last-child {
  border-top-right-radius: 10px;
}

.schedule-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.schedule-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* Mobile-specific styles for weekly classes on index.html */
.schedule-mobile-view {
  display: none; /* Hidden by default on desktop */
  margin-top: 2rem;
}

.schedule-mobile-day-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.schedule-mobile-day-card h3 {
  background-color: #002a8f;
  color: white;
  padding: 0.8rem 1rem;
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
}

/* New styling for horizontal header row in mobile homepage schedule */
.schedule-mobile-header-row {
  display: flex;
  justify-content: space-around;
  background-color: #e9e9e9; /* Light background for headers */
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #ccc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #002a8f;
}

.schedule-mobile-header-row .header-item {
  flex: 1;
  text-align: center;
  padding: 0 0.2rem;
}

/* New styling for horizontal class rows in mobile homepage schedule */
.schedule-mobile-class-row {
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.schedule-mobile-class-row:last-of-type {
  border-bottom: none;
}

.schedule-mobile-class-row > div {
  flex: 1;
  text-align: center;
  padding: 0 0.2rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.3;
}


/* Mobile-specific styles for Havana Sligo schedule */
.havana-schedule-mobile-view {
  display: none; /* Hidden by default on desktop */
  margin-top: 2rem;
}

.havana-schedule-mobile-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.2rem 1.5rem; /* Padding for the card content */
}

.havana-schedule-mobile-card h4 {
  background-color: #002a8f;
  color: white;
  padding: 0.6rem 1rem;
  margin: -1.2rem -1.5rem 1rem -1.5rem; /* Adjust margin to fill card width, compensate for padding */
  text-align: center;
  font-size: 1.1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.havana-schedule-mobile-item div {
  display: flex;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.4;
}

.havana-schedule-mobile-item div strong {
  color: #002a8f;
  min-width: 90px; /* Align labels */
  text-align: left;
  margin-right: 0.5rem;
  font-weight: 600;
}

.havana-schedule-mobile-item div span {
  flex-grow: 1;
  text-align: left;
  color: #333;
}


@media (max-width: 768px) {
  .schedule-table { /* Now targets both tables on mobile */
    display: none; /* Hide desktop table on small screens */
  }

  .schedule-mobile-view {
    display: block; /* Show mobile weekly classes view on small screens */
  }

  .havana-schedule-mobile-view {
    display: block; /* Show mobile Havana Sligo schedule view on small screens */
  }
}

/* Carousel Styles (specific to havana_sligo.html) */
.carousel-track img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.carousel {
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin: 2rem auto;
}

/* Call to Action Button */
.cta-button {
  display: inline-block;
  margin: 0.5rem;
  background: #ff4d6d;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #e03d5a;
}

/* Footer Styles */
footer {
  background: #002a8f;
  color: white;
  text-align: center;
  padding: 2rem;
}

footer .logo-footer {
  max-width: 250px;
  margin-bottom: 0.1rem; /* Standardized for consistency */
}

footer .footer-social-icons {
  margin-top: 1rem;
}

footer .footer-social-icons a {
  color: white;
  font-size: 1.8rem;
  margin: 0 0.7rem;
  transition: color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

footer .footer-social-icons a:hover {
  color: #ff4d6d;
}

/* Social Icons Groups (common properties) */
.social-icons-group a,
.organizers-social-icons a {
  color: #002a8f;
  font-size: 2.5rem;
  margin: 0 0.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.social-icons-group a:hover,
.organizers-social-icons a:hover {
  color: #ff4d6d;
  transform: translateY(-3px);
}

/* Hero Logo (specific to havana_sligo.html) */
.hero-logo {
  width: 90%; /* Increased from 80% to make it larger relative to viewport on smallest screens */
  max-width: 340px; /* Increased from 300px to allow it to grow more on very small phones before percentage takes over */
  height: auto;
  margin-bottom: 0.25rem;
}

@media (min-width: 400px) {
  .hero-logo {
    max-width: 360px; /* Increased from 320px for larger mobiles/small tablets */
  }
}

@media (min-width: 480px) {
  .hero-logo {
    max-width: 380px; /* Increased from 320px for larger mobiles/small tablets */
  }
}

@media (min-width: 768px) {
  .hero-logo {
    width: 400px;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .hero-logo {
    width: 440px;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    width: 480px;
    max-width: none;
  }
}

/* Add this to your style.css */

/* Dropdown specific styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex; /* Allows caret to be aligned */
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 5px; /* Space between text and caret */
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg); /* Rotate caret on hover */
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  background: #002a8f; /* Same as nav background */
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 101; /* Higher than nav sticky */
  left: 0; /* Align with parent link */
  top: 100%; /* Position below parent link */
  padding: 10px 0;
  border-radius: 5px;
}

.dropdown-menu li {
  list-style: none; /* Remove bullet points */
  padding: 0; /* Remove default padding */
}

.dropdown-menu a {
  color: white; /* Text color */
  padding: 10px 15px;
  text-decoration: none;
  display: block; /* Make the whole area clickable */
  text-align: left;
  white-space: nowrap; /* Prevent wrapping */
  font-weight: 400; /* Lighter than main nav link */
}

.dropdown-menu a:hover {
  background-color: #003cbb; /* Slightly lighter blue on hover */
  color: #ff4d6d;
}

.dropdown:hover .dropdown-menu {
  display: block; /* Show on hover */
}

/* Adjust mobile menu for dropdown */
@media (max-width: 768px) {
  nav .nav-links.active .dropdown-menu {
    position: static; /* Stack vertically in mobile */
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 20px; /* Indent sub-items */
    min-width: unset;
  }
  nav .nav-links.active .dropdown-menu a {
    padding: 8px 15px;
  }
}

/* Personal Image Section Styles (for desktop) */
.personal-image-section {
  padding: 3rem 1.5rem; /* Consistent with other sections' padding */
  max-width: 1000px;   /* Constrain width to match other sections */
  margin: 3rem auto;   /* Center the section horizontally and add vertical spacing */
  overflow: hidden;
  position: relative;
}

.personal-image-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%; /* Ensure the container fits within its parent's max-width */
}

.personal-section-img {
  width: 100%; /* Make the image fill the container's width */
  max-height: 500px;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Rounded corners for desktop */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Shadow for desktop */
}

.image-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
  box-sizing: border-box;
}

.image-caption h3 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: white;
}

.image-caption p {
  font-size: 1.1rem;
  margin: 0;
  color: #f0f0f0;
}

/* Responsive adjustments for the image section */
@media (max-width: 768px) {
  .personal-image-section {
    max-width: none; /* Allow full width on mobile */
    padding: 0;      /* Remove padding for edge-to-edge display */
    margin: 2rem auto; /* Adjust vertical margin for mobile */
  }

  .personal-section-img {
    border-radius: 0; /* Remove border-radius on mobile for full-width look */
    box-shadow: none; /* Remove shadow on mobile */
  }

  .image-caption {
    padding: 0.8rem 1.5rem;
    bottom: 5%;
    width: 350px;
  }
  .image-caption h3 {
    font-size: 1.4rem;
  }
  .image-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .image-caption {
    padding: 0.5rem 1rem;
    bottom: 2%;
    max-width: 90%;
  }
  .image-caption h3 {
    font-size: 1.2rem;
  }
  .image-caption p {
    font-size: 0.9rem;
  }
}

/* Meet Your Teachers Section Styles */
#teachers {
  background-color: #f8f8f8; /* Light background for contrast */
}

.section-description {
  max-width: 700px;
  margin: 0.5rem auto 2.5rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.teacher-cards-container {
  display: flex;
  flex-wrap: wrap; /* Allows cards to wrap to the next line on smaller screens */
  justify-content: center; /* Centers cards horizontally */
  gap: 2rem; /* Space between cards */
  margin-top: 2rem;
}

.teacher-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  flex: 1; /* Allows cards to grow and shrink */
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.teacher-profile-img {
  width: 200px; /* Adjust size as needed */
  height: 200px; /* Adjust size as needed */
  border-radius: 50%; /* Makes image circular */
  object-fit: cover; /* Ensures image covers the area */
  object-position: bottom; /* ADDED/UPDATED: Positions the image content from the bottom */
  border: 4px solid var(--primary-color); /* Uses your primary color for a border */
  margin-bottom: 1rem;
  transition: transform 0.3s ease-in-out, object-position 0.3s ease-in-out; /* Added object-position to transition */
}

.teacher-card h3 {
  color: var(--heading-color); /* Using your defined heading color */
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}

.teacher-card p {
  color: var(--text-color); /* Using your defined text color */
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1; /* Allows description to take up available space, pushing name up */
}

/* Responsive adjustments for teachers section */
@media (max-width: 768px) {
  .teacher-cards-container {
    flex-direction: column; /* Stack cards vertically on smaller screens */
    align-items: center;
  }

  .teacher-card {
    max-width: 90%; /* Allow cards to take more width on small screens */
  }
}

/* Schedule Location Section Styles */
.schedule-location {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 1.5rem; /* Space between location and schedule */
  background-color: #f8f8f8; /* Optional: light background to differentiate */
  border-radius: 8px;
}

.schedule-location h2 {
  font-size: 2.2rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.schedule-location p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.schedule-location h3 a {
  font-size: 1.8rem;
  color: var(--primary-color); /* Use your primary brand color */
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.schedule-location h3 a:hover {
  color: #ff4d6d; /* Example hover color */
  text-decoration: underline;
}

.location-address {
  font-size: 0.95rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .schedule-location h2 {
    font-size: 1.8rem;
  }
  .schedule-location h3 a {
    font-size: 1.4rem;
  }
  .schedule-location p {
    font-size: 1rem;
  }
  .location-address {
    font-size: 0.85rem;
  }
}

/* Styles for the Class Location Info (top of schedule section) */
.schedule-location-top {
  text-align: center; /* Centers the text and link within this block */
  margin-bottom: 1.5rem; /* Space between location info and schedule tables */
}

.schedule-location-top p {
  font-size: 1.1rem; /* Adjust font size as needed */
  color: var(--text-color);
  margin: 0; /* Remove default paragraph margins */
  line-height: 1.5;
}

.schedule-location-top a {
  color: var(--primary-color); /* Uses your primary brand color */
  text-decoration: none; /* Removes underline */
  font-weight: 600;
  transition: color 0.3s ease;
}

.schedule-location-top a:hover {
  color: #ff4d6d; /* Example hover color */
  text-decoration: underline; /* Adds underline on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .schedule-location-top p {
    font-size: 0.95rem; /* Smaller font on mobile */
  }
}

/* Styles for Social Icons in About Section */

.about-content {
    display: flex; /* Ensure flexbox for image/text layout */
    flex-direction: row; /* Default for desktop */
    align-items: flex-start; /* Aligns items at the start of the cross axis */
    gap: 3rem; /* Space between image and text */
    max-width: 1200px; /* Adjust max-width as per your overall layout */
    margin: 0 auto; /* Center the content */
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column; /* Stack image and text vertically on smaller screens */
    align-items: center; /* Center items when stacked */
    text-align: center; /* Center text within the stacked items */
  }
}

.about-text {
  display: flex;
  flex-direction: column; /* Stack paragraphs and icons vertically */
  justify-content: center;
  align-items: center; /* Centers paragraphs and social icons horizontally */
  flex: 1;
  max-width: 750px; /* Changed from 600px to allow wider text */
}

@media (max-width: 768px) {
  .about-text {
    text-align: center;
  }
}

.connect-text {
  margin-top: 1.5rem; /* Space above "Connect with us" */
  margin-bottom: 0.5rem; /* Space below "Connect with us" */
  font-size: 1.15rem; /* Slightly larger text */
  font-weight: 600;
  color: var(--heading-color); /* Uses your heading color */
}

.about-social-icons {
  display: flex;
  justify-content: center; /* Centers the icons themselves */
  /* margin-top: 2rem; REMOVE OR ADJUST: margin handled by connect-text and about-text's align-items */
  gap: 1.5rem;
}

.about-social-icons a {
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-social-icons a:hover {
  transform: translateY(-3px);
  color: #ff4d6d;
}

/* Base styles for .class-card (if not already defined and needing replication of .teacher-card) */
.class-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-bottom: 2rem; /* Add some bottom margin for spacing between rows if wrapping */
  flex: 1; /* Allows cards to grow and shrink on smaller screens */
  min-width: 280px; /* Minimum width before wrapping on smaller screens */
}

.class-card h3 {
  color: var(--heading-color);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}

.class-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Ensure the container is set up correctly to hold the cards */
.teacher-cards-container {
  display: flex;
  flex-wrap: wrap; /* Allows cards to wrap to the next line */
  justify-content: center; /* Centers cards horizontally */
  gap: 2rem; /* Space between cards */
  margin-top: 2rem;
  max-width: 1200px; /* Ensure this matches your main container width */
  margin-left: auto;
  margin-right: auto;
}

/* Desktop layout: 3 cards per row */
@media (min-width: 992px) { /* Adjust this breakpoint if your "desktop" starts at a different width */
  .class-card {
    /* flex-grow: 0, flex-shrink: 0, flex-basis: calculated width */
    flex: 0 0 calc(33.33% - (2 * 2rem / 3));
    max-width: calc(33.33% - (2 * 2rem / 3)); /* Ensures max width based on calculation */
    margin-bottom: 0; /* Remove bottom margin here as gap will handle spacing between rows */
  }
}

/* Mobile layout: cards stack vertically */
@media (max-width: 768px) {
  .teacher-cards-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally when stacked */
  }
  .class-card {
    max-width: 70%; /* Allow cards to take more width on small screens */
    flex-basis: auto; /* Reset flex-basis for mobile to default behavior */
    margin-bottom: 2rem; /* Re-add margin for vertical stacking */
  }
}

.about-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Added for zoom and positioning */
  object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
  object-position: left; /* Aligns the image content to the left within its box */
  transition: transform 0.3s ease-in-out, object-position 0.3s ease-in-out; /* Smooth transition for changes */
}

/* In style.css, inside the @media (max-width: 768px) block */
.image-caption .cta-button {
  padding: 0.6rem 1.2rem; /* Smaller padding */
  font-size: 0.9rem; /* Smaller font size */
  margin-top: 1rem; /* Adjust margin to ensure title visibility */
}
