/* ==========================================================================
   Base Styles & CSS Variables (Student Shine & Sand Theme)
   ========================================================================== */
:root {
  --primary-blue: #0B537C;    /* Deep Ocean Blue */
  --accent-blue: #2B88C4;     /* Bright Sky Blue */
  --dark-nav-blue: #083f5e;   /* Darker Blue Shade for Nav/Active states */
  --sand-cream: #FAF6EF;      /* Warm Sand Background */
  --card-bg: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #64748B;
  --border-color: #E2DCD4;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--sand-cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 0;
  flex: 1;
}

/* ==========================================================================
   Header Banner - Single Row Desktop Alignment
   ========================================================================== */
header {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  padding: 3rem 2rem;
  border-top: 10px solid var(--accent-blue);
  border-bottom: 4px solid var(--dark-nav-blue);
}

.primary-header {
  position: relative;
  background-color: #083F5E; /* Darker Ocean Blue */
  color: #FFFFFF;
  padding: 2.5rem 2rem;
  border-top: 8px solid #2B88C4;
}

.back-link {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  color: #FFFFFF;
  font-size: 1.6rem;
  text-decoration: none;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
  z-index: 5;
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.primary-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-circle-container {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 50%;
  background-color: #FAF6EF;
  border: 4px solid #2B88C4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.round-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-title-group h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.1;
}

.header-title-group p {
  font-size: 1.2rem;
  color: #FAF6EF;
  opacity: 0.9;
  margin-top: 0.3rem;
}

/* Header 2: Sub-Header Photo Showcase (Slightly Lighter Blue) */
.secondary-header {
  background-color: #0B537C; /* Standard Primary Blue */
  padding: 1.5rem 2rem;
  border-bottom: 3px solid #083F5E;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.15);
}

.photo-fan {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 0.5rem 0;
}

/* Photo Cards: static fanned stack */
.photo-card {
  width: 240px;
  height: 165px;
  border-radius: 10px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fan-1 {
  transform: rotate(-8deg) translateY(8px);
  margin-right: -55px;
  z-index: 1;
}

.fan-2 {
  transform: rotate(1deg);
  z-index: 3;
}

.fan-3 {
  transform: rotate(8deg) translateY(8px);
  margin-left: -55px;
  z-index: 2;
}

.photo-fan .photo-card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  z-index: 4;
}
/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.main-nav {
  padding: 0;
  width: 100%;
  text-align: center;
  background-color: var(--dark-nav-blue);
  box-shadow: var(--shadow-sm);
}

.main-nav .container {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  color: #FFFFFF;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: var(--accent-blue);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  z-index: 1000;
}

/* ==========================================================================
   Cards & Project Items
   ========================================================================== */
section h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--primary-blue);
}

.project-card, .card {
  background: var(--card-bg);
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 5px solid var(--accent-blue);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card:hover, .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h2 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ==========================================================================
   Operations Overview
   ========================================================================== */
.section-title {
  font-size: 1.9rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.operations {
  margin-top: 3rem;
  text-align: center;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.ops-item {
  background: var(--card-bg);
  border-top: 4px solid var(--accent-blue);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ops-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ops-item h3 {
  color: var(--primary-blue);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.ops-item p {
  color: var(--text-muted);
}

/* ==========================================================================
   About the Owner
   ========================================================================== */
.about-owner {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.owner-photo-placeholder,
.owner-photo {
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: 50%;
}

.owner-photo-placeholder {
  background: var(--sand-cream);
  border: 3px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.owner-photo {
  object-fit: cover;
  border: 4px solid var(--card-bg);
  box-shadow: var(--shadow-md);
}

.owner-text {
  flex: 1;
  min-width: 0;
}

.owner-text .section-title {
  text-align: left;
  margin-bottom: 0.75rem;
}

.owner-text p {
  color: var(--text-muted);
  max-width: 560px;
}

@media (max-width: 600px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .about-owner {
    flex-direction: column;
    text-align: center;
  }

  .owner-text .section-title {
    text-align: center;
  }
}
/* ==========================================================================
   Collapsible Sections
   ========================================================================== */
.collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: 0;
  transition: var(--transition);
}

.collapsible-header:hover {
  color: var(--accent-blue);
}

.collapse-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  color: var(--accent-blue);
}

.collapsible-header.active .collapse-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.collapsible-content.active {
  max-height: 1000px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--primary-blue);
  color: #FFFFFF;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
  font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Adjustments (Mobile Layouts)
   ========================================================================== */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  .header-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .header-photos {
    justify-content: center;
  }

  .header-photos img {
    width: 100px;
    height: 70px;
  }

  .main-nav {
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    position: static;
    margin-left: auto;
    order: 2;
  }

  .nav-list {
    flex-direction: column;
    display: none;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-nav-blue);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 999;
  }

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

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

@media (max-width: 600px) {
  .header-title-group h1 {
    font-size: 1.75rem;
  }

  section h2, .collapsible-header {
    font-size: 1.4rem;
  }
}