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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #f5f5f5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
  width: auto;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #0066cc;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 80, 0.55);
}

.hero-content {
  position: relative;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.hero-content h1 span {
  color: #4db8ff;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0066cc;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #0052a3;
  transform: translateY(-2px);
}

.btn-icon {
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ===========================
   PATTERN SECTION
   =========================== */
.pattern-section {
  padding: 48px 0;
  background-repeat: repeat;
  text-align: center;
}

.pattern-section h2 {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===========================
   CARDS
   =========================== */
.cards-section {
  padding: 60px 0;
  background: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}

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

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

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-bottom: 8px;
  color: #0066cc;
}

/* ===========================
   GALLERY
   =========================== */
.gallery-section {
  padding: 60px 0;
  background: #f0f4fa;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* ===========================
   PROFILE
   =========================== */
.profile-section {
  padding: 48px 0;
  text-align: center;
  background: #fff;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #0066cc;
  margin-bottom: 12px;
  object-fit: cover;
}

/* ===========================
   CDN DEBUG PANEL
   =========================== */
.cdn-debug {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 20, 60, 0.88);
  color: #4db8ff;
  font-family: monospace;
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 320px;
  z-index: 9999;
  line-height: 1.7;
}