/* Hide the skip link by default */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #00203D;
  color: #fff;
  padding: 8px 16px;
  z-index: 100; /* keep it on top of other elements */
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.3s;
}

/* Make it visible for keyboard users */
.skip-link:focus {
  top: 10px; /* slide down into view */
}

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

body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: #111;
background: #f0f4f8;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.logo {
    height: 60px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}
nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: #dfb952;
}


/* NAV CONTAINER */
nav {
    display: flex;
    justify-content: center;
    background: transparent;
}

/* MAIN NAV LIST */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* MAIN NAV LINKS */
nav ul li a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    color: #1a1a1a;
    display: block;
    text-align: center;
}

/* MAIN NAV LINKS HOVER */
nav ul li a:hover {
    background: #dbe9f2;
    color: #1a1a1a;
    border-radius: 6px;
}

/* DROPDOWN LINKS HOVER */
nav ul li .dropdown-content li a:hover {
    background: #e9f3f8;
    color: #1a1a1a;
}

/* DROPDOWN CONTAINER */
nav ul li {
    position: relative;
    text-align: center; /* Centers link + dropdown menu */
}

/* DROPDOWN MENU */
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);     /* Center itself */
    background: white;
    border: 1px solid #c0c8d4;
    border-radius: 8px;
    min-width: 180px;                /* Prevent tiny dropdowns */
    text-align: center;              /* Center text in dropdown */
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 20;
}

/* DROPDOWN ITEMS */
nav ul li .dropdown-content li a {
    padding: 10px 15px;
    white-space: nowrap;
}

/* SHOW DROPDOWN ON HOVER */
nav ul li:hover .dropdown-content {
    display: block;
}


/* Hero / Intro Section */
.intro {
text-align: center;
padding: 80px 20px 50px 20px;
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00203D;
}

.intro p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Headings */
.cards-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.cards-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #00203D;
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    padding: 20px;

    border: 2px solid #c0c8d4;
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;

    background-image: var(--bg);
    background-size: cover;
    background-position: center;

    text-align: center;

    /* Animation + depth */
    transform: translateY(0);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

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

/* Fade overlay */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Foreground content */
.card h2,
.card h3,
.card p,
.card .more-btn {
    position: relative;
    z-index: 2;
}

/* Text styling */
.card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00203D;
}

.card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

/* BUTTON */
.more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #00203D;
    color: #b6dbf1; 
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

/* Button Hover */
.more-btn:hover {
    background:#b6dbf1;
    color: #00203D; 
}


/* -------- Contact Form (Formspree Version) -------- */
.contact {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #00203D;
  font-weight: 700;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Label styling */
.contact label {
  font-weight: 600;
  color: #00203D;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.4;
}

/* Input + Textarea fields */
.contact input[type="email"],
.contact textarea {
  margin-top: 6px;
  padding: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  border: 1px solid #00203D;
  border-radius: 8px;
  background-color: #fff;
  color: #111;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input[type="email"]:focus,
.contact textarea:focus {
  outline: none;
  border-color: #dfb952;
  box-shadow: 0 0 6px rgba(223, 185, 82, 0.4);
}

/* Textarea resize and height */
.contact textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.contact button {
  background-color: #00203D;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.contact button:hover,
.contact button:focus {
  background-color: #b6dbf1;
  color: #00203D;
  transform: scale(1.03);
}

/* ------------- Gallerys ------------------ */
.gallery-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #00203D;
}

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Gallery item cards */
.gallery-item {
    background-color: #f7f7f7;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    padding: 10px;
     position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* forces a perfect square */
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
      object-fit: cover; /* crops instead of stretching */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item p {
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.gallery-item:hover {
  transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ----------- Modal ----------- */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding: 60px 20px;
    box-sizing: border-box;
}

.modal[aria-hidden="false"] {
    display: block;
}

#modalContent {
    max-width: 900px;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

#modalContent img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

#modalContent h2 {
    margin-bottom: 10px;
}

#modalContent p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* ----------- ABOUT PAGE STYLING ------------ */

/* Hero Section */
.about-hero {
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    padding: 120px 20px;
}

.about-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 1.2rem;
    color: #f0f0f0;
}

/* About Content */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.about-text h2 {
    color: #00203D;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

/* Skills Section */
.skills {
    text-align: center;
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.skills h2 {
    color: #00203D;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.skill-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

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

/* Fade-in Animation */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   HOME PAGE ABOUT PREVIEW
-------------------------- */
.about-preview {
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    color: #00203D;
}

.about-preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: auto;
    gap: 50px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.about-preview-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-preview-text {
    flex: 1;
    text-align: left;
}

.about-preview-text h2 {
    font-size: 2rem;
    color: #00203D;
    margin-bottom: 15px;
}

.about-preview-text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #00203D;
    color: #b6dbf1;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: #b6dbf1;
    color: #00203D;
}

/* ---------- FEATURED PROJECTS (2x2 grid, no blur overlay) ---------- */
/* ---------- Featured Projects 2x2 layout (clean alignment) ---------- */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(400px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 950px;
  margin: 0 auto;
}

.card.featured {
  background: #fff;
  border: 2px solid #c0c8d4;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;    
  aspect-ratio: auto;  
}

.card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Image container for consistent height */
.card.featured img {
  width: 100%;
  height: 200px; /* fixed visual balance for all images */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card.featured:hover img {
  transform: scale(1.03);
}

/* Text and button */
.card.featured h3 {
  font-size: 1.3rem;
  color: #00203D;
  font-weight: 600;
  margin: 15px 20px 8px 20px;
}

.card.featured p {
  font-size: 1rem;
  color: #333;
  margin: 0 20px 15px 20px;
  line-height: 1.5;
}

.card.featured .more-btn {
  align-self: center;
  margin: 0 0 20px 0;
  padding: 10px 24px;
  background: #00203D;
  color: #b6dbf1;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.card.featured .more-btn:hover {
  background: #b6dbf1;
  color: #00203D;
}

/* Remove blur overlay for featured cards */
.card.featured::before {
  content: none;
  display: none;
}

/* Hover effect */
.card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}


/* -------------------------
   MODAL POPUP (for projects)
-------------------------- */
#featuredModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 20px;
    box-sizing: border-box;
}

#featuredModal.active {
    display: block;
}

.modal-content {
    background: #fff;
    max-width: 700px;
    margin: 60px auto;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    animation: fadeInUp 0.4s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #00203D;
    margin-bottom: 10px;
}

.modal-content p {
    color: #333;
    line-height: 1.6;
    padding: 0 10px;
}

/* Close Button */
#closeFeatured {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

#closeFeatured:hover {
    color: #dfb952;
}

/* Modal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------- Footer ---------------------------------------- */
footer {
    padding: 40px 20px;
    text-align: center;

    background-image: url("../images/banner.png");
    background-size: cover;        /* fills the footer */
    background-position: center;
    background-repeat: no-repeat;  /* prevents tiling */

    background-color: #ffffff;

    border-top: 2px solid #c0c8d4;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

footer a {
    color: #00203D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

footer a:hover {
    color: #dfb952;
}

/* ===========================================================
   GLOBAL MODAL STYLES — applies to all modals sitewide
   =========================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px 20px;
}

.modal.open {
  display: box;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content,
#modalContent,
.modal-body {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.modal img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #00203D;
}

.modal .excerpt {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.modal .description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.close,
#modalClose {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100; /* make sure it sits above the modal content */
}

.close:focus,
#modalClose:focus {
  outline: 3px solid #00203D;
  outline-offset: 3px;
}

/* Tweak position + size on smaller screens so it doesn't get cut off */
@media (max-width: 600px) {
  .close,
  #modalClose {
    top: 10px;
    right: 16px;
    font-size: 1.8rem;
  }
}

/* Smooth fade-in */
.modal.open {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* =============== FIX FEATURED IMAGE CLICK AREA =============== */
.featured-trigger {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.featured-trigger:focus {
  outline: 3px solid #00203D;
  outline-offset: 4px;
}

.featured-trigger:focus,
.gallery-item:focus {
  outline: 3px solid #00203D;
  outline-offset: 4px;
}

.section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.section-nav button {
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.section-nav button:hover,
.section-nav button:focus {
  background-color: #555;
  transform: scale(1.05);
}

#backToTop {
  position: fixed;
  bottom: 1.5rem;     
  right: 5.5rem;       
  display: none;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  z-index: 999; /* keeps it visible but under chatbot bubble */
}

#backToTop:hover,
#backToTop:focus {
  background-color: #666; /* subtle light-on-hover effect */
  transform: scale(1.1);
}

/* ---------- HOME THEATRE PAGE STYLES ---------- */

/* Make the theatre hero title match your other big page titles */
.intro h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #00203D;
}

.intro p {
  font-size: 1.15rem;
  color: #333;
  max-width: 650px;
  margin: 0 auto;
}

/* Videos section wrapper */
.videos {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 40px 20px 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Section heading + channel line */
.videos h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #00203D;
  margin-bottom: 10px;
}

.videos > p {
  text-align: center;
  margin-bottom: 30px;
  color: #444;
  font-size: 1rem;
}

.videos > p a {
  color: #00203D;
  font-weight: 600;
  text-decoration: none;
}

.videos > p a:hover {
  color: #dfb952;
  text-decoration: underline;
}

/* Video gallery grid */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Each video card */
.video-gallery figure {
  background: #f7fafc;
  border-radius: 14px;
  padding: 14px 14px 18px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Make iframes responsive */
.video-gallery iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 10px;
  border: none;
}

/* Video titles */
.video-gallery figcaption {
  font-size: 0.98rem;
  font-weight: 600;
  color: #00203D;
  text-align: left;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .videos {
    padding: 30px 16px 50px 16px;
    margin-bottom: 60px;
  }

  .intro h1 {
    font-size: 2.2rem;
  }

  .video-gallery {
    gap: 18px;
  }

  .video-gallery figure {
    padding: 12px 12px 16px 12px;
  }

  .video-gallery figcaption {
    font-size: 0.95rem;
  }
}

/*--------------- Responsive Layout ----------------*/
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 250px;
        height: 250px;
    }

    .about-hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
header h1 {
font-size: 2.2rem;
}

.intro h2 {
    font-size: 2rem;
}

.cards-section h2 {
    font-size: 1.8rem;
}
}

@media (max-width: 600px) {
.cards {
grid-template-columns: 1fr; /* single column on phone */
}

.intro {
    padding: 50px 20px 30px 20px;
}
}

@media (max-width: 768px) {
    .about-preview-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .about-preview-image img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
  .featured-cards {
    grid-template-columns: 1fr; /* stack in one column */
    gap: 25px;
  }

  .card.featured {
    justify-content: flex-start;
    margin: 0 auto;
    width: 90%;
  }

  .card.featured img {
    height: auto; /* let images resize naturally */
    max-height: 240px;
    object-fit: cover;
  }

  .card.featured h3 {
    font-size: 1.2rem;
  }

  .card.featured p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    overflow: visible; /* ensure text not clipped */
  }

  .card.featured .more-btn {
    margin-top: 8px;
  }
}

/* ---------------- MOBILE NAVIGATION ---------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #00203D;
  cursor: pointer;
}

/* Desktop default: nav visible, toggle hidden */
.main-nav {
  display: flex;
}

/* Dropdowns already covered by your existing CSS */

/* Mobile layout */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .nav-toggle {
    display: block;
    z-index: 2001;
  }

  .main-nav {
    display: none;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #c0c8d4;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav ul li .dropdown-content {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
  }

  .main-nav ul li:hover .dropdown-content {
    display: block;
  }

  nav ul li a {
    padding: 10px;
    color: #00203D;
    background: transparent;
  }
}
/* ----------- Improve Modal Text for Mobile ----------- */
@media (max-width: 700px) {
  #modalContent,
  .modal-content {
    padding: 20px 16px;
    border-radius: 10px;
    width: 95%;
    max-width: 90%;
  }

  #modalContent h2,
  .modal-content h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  #modalContent p,
  .modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    text-align: left;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  #modalContent img,
  .modal-content img {
    border-radius: 8px;
    max-height: 40vh;
    object-fit: cover;
    margin-bottom: 15px;
  }

  /* Keep close button accessible */
  .close,
  #modalClose {
    top: 10px;
    right: 12px;
    font-size: 1.6rem;
    z-index: 1100;
  }
}
