/* ====================================
   SHREE VANI PU COLLEGE - MAIN STYLESHEET
   Professional Color Palette & Responsive Design
   ==================================== */

/* ========== COLOR PALETTE ========== */
:root {
  /* Primary Colors - Educational & Trust */
  --primary-blue: #1e3a8a;        /* Deep Blue - Authority & Trust */
  --primary-gold: #d97706;        /* Gold - Achievement & Excellence */
  --accent-green: #059669;        /* Green - Success & Growth */
  
  /* Secondary Colors */
  --light-blue: #3b82f6;          /* Bright Blue - Interactive */
  --dark-navy: #0f172a;           /* Navy - Headers */
  --light-gold: #fbbf24;          /* Light Gold - Highlights */
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f3f4f6;
  --medium-gray: #6b7280;
  --dark-gray: #374151;
  --border-gray: #e5e7eb;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Spacing */
  --max-width: 1200px;
  --section-padding: 4rem 2rem;
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-blue);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* ========== HEADER & NAVIGATION ========== */
.header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  color: var(--white);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid var(--primary-gold);
  object-fit: contain;
  padding: 4px; /* keep logo artwork clear from the ring */
  background-color: var(--white);
  display: block;
}

.logo-img:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.35) saturate(1.35) drop-shadow(0 6px 12px rgba(0,0,0,0.15));
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--light-gold);
  margin: 0;
}

.header-contact {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.contact-item a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.nav {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  margin-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background-color: var(--primary-gold);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-gold);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.highlight-item {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--primary-gold);
}

.highlight-item h3 {
  color: var(--light-gold);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--white);
  margin: 0;
}

/* ========== CTA BUTTONS ========== */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue, #1e3a8a) 0%, var(--light-blue, #3b82f6) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-gold, #d97706) 0%, var(--light-gold, #fbbf24) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--light-gold));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--medium-gray);
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid var(--border-gray);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-gold);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold) !important;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1;
  position: relative;
}

.card-icon::before {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  margin: 0;
  position: static;
  transform: none;
  color: var(--primary-gold) !important;
}

/* If markup uses a wrapper <div class="card-icon"><i class="fa ..."></i></div> */
.card-icon i {
  display: inline-block;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  width: auto;
  height: auto;
}

/* Force absolute-centering for both pseudo and child icons */
.card-icon::before,
.card-icon > i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* Small adjustment for very small screens */
@media (max-width: 420px) {
  .card-icon { width: 52px; height: 52px; }
  .card-icon i, .card-icon::before { font-size: 1.05rem; }
}

.card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card p {
  color: var(--medium-gray);
  line-height: 1.6;
}

.card-highlight {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.card-highlight h3,
.card-highlight p {
  color: var(--text-dark);
}

/* ========== ACHIEVEMENT BADGES ========== */
.achievement-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.badge {
  background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  text-align: center;
}

.badge-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3/2;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 1rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ========== IMAGE LOADING STATES ========== */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.no-gallery {
  text-align: center;
  padding: 60px 20px;
  color: var(--medium-gray, #6b7280);
  font-size: 1.15rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 0 auto;
}

.no-gallery i {
  font-size: 3.5rem;
  color: var(--primary-gold, #d97706);
  margin-bottom: 20px;
  display: block;
}

/* ========== MOBILE SIDEBAR ========== */
.mobile-sidebar-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-sidebar-toggle {
    display: block !important;
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-sidebar-toggle:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  
  .mobile-sidebar-toggle:active {
    transform: scale(0.95);
  }
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  z-index: 1003;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.25rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-gold);
  padding-left: 1.1rem;
}

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.sidebar-icon {
  font-size: 1.25rem;
  width: 30px;
  text-align: center;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== CONTACT FORM ========== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
}

.contact-info-item > div {
  flex: 1;
  padding-top: 0.25rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  min-width: 50px;
  max-width: 50px;
  margin-top: 0;
}

.contact-icon i {
  line-height: 1;
}

.map-container {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ========== INFO BOXES ========== */
.info-box {
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-gold);
  margin: 2rem 0;
}

.info-box h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.info-list li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ========== TABLE STYLES ========== */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
}

thead {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

tbody tr:hover {
  background-color: var(--light-gray);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--light-gold);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--primary-gold);
}

.footer-links {
  list-style: none;
}

/* ========== INLINE SVG ICONS FOR PLACEHOLDERS ========== */
/* Using Font Awesome icons now instead of inline SVGs */

/* Font Awesome Icon Styling */
/* Contact icon styling is defined earlier in the file */

.card-icon {
  font-size: 1.5rem;
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.badge-icon {
  font-size: 1rem;
  color: var(--white) !important;
}

.sidebar-icon {
  font-size: 1.2rem;
  color: var(--white) !important;
}

/* small spacing tweaks for contact items */
.contact-item .icon-phone,
.contact-item .icon-email {
  margin-right: 0.25rem;
}

/* Responsive: ensure icons scale on small screens */
@media (max-width: 640px) {
  .icon-phone, .icon-email { width: 16px; height: 16px; }
  .sidebar-icon[aria-hidden="true"], .badge-icon[aria-hidden="true"]::before { width: 22px; height: 22px; }
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-gold { color: var(--primary-gold); }
.text-success { color: var(--accent-green); }

.bg-light { background-color: var(--light-gray); }
.bg-primary { background-color: var(--primary-blue); }
.bg-gold { background-color: var(--primary-gold); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== LAZY LOADING ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .nav-list {
    gap: 1rem;
    padding: 0.75rem 0;
  }
  
  .nav-list a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  html {
    font-size: 14px;
  }
  
  h1 { 
    font-size: 1.75rem; 
    line-height: 1.2;
  }
  
  h2 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem;
  }
  
  h3 { 
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .header-top {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.5rem;
    gap: 2rem;
    position: relative;
    min-height: auto;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .logo {
    flex-direction: row;
    gap: 1rem;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: contain;
    padding: 4px;
    background-color: var(--white);
    display: block;
    flex-shrink: 0;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .logo-text h1 {
    font-size: 1.35rem;
    margin: 0;
  }
  
  .logo-text p {
    font-size: 0.9rem;
    margin: 0;
  }
  
  .header-contact {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    padding: 0;
    justify-content: flex-end;
    flex: 1;
    min-width: auto;
    flex-wrap: wrap;
    margin-top: -0.8rem;
  }
  
  .contact-item {
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: auto;
    white-space: nowrap;
  }
  
  .contact-item div {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    align-items: center;
  }
  
  .contact-item a {
    display: inline;
    word-break: break-word;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
  }
  
  .contact-item a:hover {
    text-decoration: underline;
  }
  
  .nav {
    position: relative;
  }
  
  .nav-container {
    padding: 0;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    z-index: 1000;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list a {
    padding: 0.75rem 2rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
  }
  
  .nav-list a:hover,
  .nav-list a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-gold);
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-sidebar {
    width: 260px;
    right: -260px;
  }
  
  .sidebar-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-highlights {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .highlight-item {
    padding: 1rem;
    text-align: center;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
  }
  
  .gallery-caption {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .info-box {
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .info-list {
    padding-left: 1.25rem;
  }
  
  .info-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    min-height: 44px; /* Touch-friendly */
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  input, select, textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: 6px;
    min-height: 44px; /* Touch-friendly */
  }
  
  textarea {
    min-height: 100px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-links li {
    margin-bottom: 0.25rem;
  }
  
  .footer-bottom {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
  }
  
  /* Hide navigation elements on mobile for simplified header */
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-sidebar-toggle {
    display: none !important;
  }
  
  /* Table responsiveness */
  .info-box table {
    font-size: 0.8rem;
  }
  
  .info-box th,
  .info-box td {
    padding: 0.5rem;
  }
  
  /* Touch-friendly interactions */
  .gallery-item,
  .card {
    cursor: pointer;
  }
  
  .gallery-item:active,
  .card:active {
    transform: scale(0.98);
  }
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
  :root {
    --section-padding: 1.5rem 0.75rem;
  }
  
  html {
    font-size: 13px;
  }
  
  h1 { 
    font-size: 1.5rem; 
  }
  
  h2 { 
    font-size: 1.25rem; 
  }
  
  h3 { 
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .header-top {
    padding: 0.75rem;
  }
  
  .logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: contain;
    padding: 4px;
    background-color: var(--white);
    display: block;
  }
  
  .logo-text h1 {
    font-size: 1.1rem;
  }
  
  .logo-text p {
    font-size: 0.8rem;
  }
  
  .header-contact {
    gap: 0.75rem;
  }
  
  .contact-item {
    font-size: 0.85rem;
  }
  
  .mobile-menu-toggle {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.25rem;
  }
  
  .nav-list {
    padding: 0.75rem 0;
  }
  
  .nav-list a {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 2rem 0.75rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-highlights {
    margin-top: 1.5rem;
  }
  
  .highlight-item {
    padding: 0.75rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .cards-grid {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .gallery-item {
    aspect-ratio: 3/2;
  }
  
  .gallery-caption {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .info-box {
    padding: 1.25rem;
  }
  
  .info-list {
    padding-left: 1rem;
  }
  
  .info-list li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    min-height: 42px;
  }
  
  .cta-buttons {
    margin-top: 1.5rem;
  }
  
  .contact-form {
    padding: 1.25rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  input, select, textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
    min-height: 42px;
  }
  
  textarea {
    min-height: 80px;
  }
  
  .footer-content {
    padding: 1.5rem 0.75rem;
    gap: 1.5rem;
  }
  
  .footer-section h3 {
    font-size: 1rem;
  }
  
  .footer-links {
    gap: 0.4rem;
  }
  
  .footer-bottom {
    padding: 1.25rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Extra small screens */
  .achievements-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .badge {
    padding: 0.75rem;
  }
  
  .badge-number {
    font-size: 1.25rem;
  }
  
  .badge-label {
    font-size: 0.75rem;
  }
}

/* ========== MOBILE OPTIMIZATIONS ========== */

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--border-gray);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Better mobile navigation */
.mobile-menu-toggle {
  display: none;
  touch-action: manipulation;
}

/* Improved form elements for mobile */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Better spacing for mobile content */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Better text readability */
  body {
    line-height: 1.6;
  }
  
  /* Improved button spacing */
  .btn-group {
    margin-top: 1rem;
  }
  
  /* Better list spacing */
  ul, ol {
    padding-left: 1.25rem;
  }
  
  li {
    margin-bottom: 0.5rem;
  }
  
  /* Better table display on mobile */
  .info-box table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .info-box th,
  .info-box td {
    padding: 0.75rem 0.5rem;
    min-width: 120px;
  }
}

/* Enhanced gallery for mobile */
@media (max-width: 768px) {
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .gallery-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item:hover .gallery-caption,
  .gallery-item:active .gallery-caption {
    opacity: 1;
  }
}

/* Better card design for mobile */
@media (max-width: 768px) {
  .card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid var(--border-gray);
  }
  
  .card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  
  .card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  
  .card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Improved hero section for mobile */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    min-height: auto;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.85);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: white;
  }
}

/* Better footer for mobile */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-section {
    margin-bottom: 0;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .footer-links a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Loading states for better UX */
.gallery-item img {
  transition: opacity 0.3s ease;
}

.gallery-item img.loaded {
  opacity: 1;
}

.gallery-item img:not(.loaded) {
  opacity: 1;
}

/* Better focus states for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* ========== PROFESSIONAL GALLERY STYLES ========== */
.professional-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  color: white;
  padding: 20px 15px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-gold);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: 80%;
  backdrop-filter: blur(10px);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .professional-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .professional-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 220px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 35px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 12px 20px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .professional-gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .lightbox-close {
    font-size: 30px;
  }
}

/* ===== FORCE "MORE" SIDEBAR BUTTON TO TOP-RIGHT (MOBILE ONLY) ===== */
@media (max-width: 768px) {
  .mobile-sidebar-toggle {
    display: block !important;
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;

    z-index: 2000 !important;

    background: var(--primary-gold);
    color: var(--dark-navy);
    border-radius: 10px;

    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .mobile-sidebar-toggle:active {
    transform: scale(0.95);
  }
}
