/* Core Variables & Styles */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --accent: #f59e0b;@
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand h1 {
  font-size: 1.0rem;
  font-weight: bold;
 /* WIDE CHARACTER SPACING (A B C) */
  letter-spacing: 0em;;
}

.brand .subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
}

.social-bar a {
  color: var(--white);
  font-size: 1.5rem;
  transition: opacity 0.2s;
}

.social-bar a:hover {
  opacity: 0.8;
}

/* Navigation */
.navbar {
  background-color: #0f172a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 1rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--primary-hover);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow);
  list-style: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.dropdown-menu a {
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  font-weight: 400;
}

.dropdown-menu a:hover {
  background-color: #f1f5f9;
  color: var(--primary-hover);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: var(--white);
  text-align: center;
}

.announcement-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge {
  background-color: var(--accent);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.announcement-card h2 {
  margin: 1.2rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #f8fafc;
}

/* Dashboard Grid */
.dashboard-section {
  padding: 1rem 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
  gap: 1rem;
}

.dash-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;    /* Naka-stack pababa ang mga laman */
  justify-content: flex-start; /* 👈 DITO MA-SE-SET SA TOP (Simula sa taas ang tulak ng content) */
  align-items: stretch;        /* Naka-center pa rin horizontally */

  height: 100%;               /* Para pantay-pantay ang taas ng lahat ng cards */
  padding: 24px 20px;         /* May tamang espasyo sa paligid */
  box-sizing: border-box;
}

.dash-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dash-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.dash-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: auto; /* 👈 Kusa nitong itutulak ang button sa pinakababa ng card */
}

.card-btn:hover {
  background-color: var(--primary-hover);
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #1e293b;
  }

  .dropdown-menu a {
    color: var(--white);
    padding-left: 2rem;
  }
}



/* Layout ng Header para pantay sa kaliwa at kanan */
.site-header {
  display: flex;
  justify-content: space-between; /* Ihahagis ang orasan sa gilid na kanan */
  align-items: center;            /* Ipapantay ang vertical height sa captions */
  padding: 15px 30px;
  background-color: var(--primary);      /* Halimbawa ng dark background */
}

/* Container ng PST Widget */
.pst-container {
  width: auto;                    /* Hindi na kakainin ang buong lapad */
  max-width: 300px;
  background: transparent;
}

.pst-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;         /* I-align sa kanan ang text ng orasan */
  justify-content: center;
  background: transparent;
  font-family: system-ui, -apple-system, sans-serif;
}

/* --- KULAY AT SIZES NG TEXT (Adjustable para sa Dark BG) --- */

.pst-label {
  font-size: 0.5rem;            /* Maliit na label sa taas */
  color: #b0b0b0;                /* Light Gray para madaling basahin */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}

.pst-time {
  font-size: 1.5rem;             /* Sakto lang ang laki para sa header */
  font-weight: 800;
  color: #ffffff;                /* Puti ang oras para litaw sa dark BG */
  line-height: 1.1;
}

.pst-date {
  font-size: 0.85rem;            /* Maliit na petsa sa ibaba */
  color: #d1d5db;                /* Soft White/Light Gray */
  margin-top: 3px;
}


/* Layout ng buong Header */
.site-header {
  display: flex;
  justify-content: space-between; /* Hihiwalayin ang Logos, Text, at Orasan */
  align-items: center;            /* Mananatiling pantay sa gitna horizontally */
  padding: 10px 20px;
  background-color: #1b3687;      /* Ang dark blue background mo */
}

/* Group ng Logo sa Kaliwa */
.header-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* GITNA: Dito bababa ang subtitle */
.header-text {
  display: flex;
  flex-direction: column;         /* Gagawing patong ang text */
  justify-content: center;
  text-align: left;               /* o 'center' kung gusto mong nakagitna ang sub-title sa title */
}

.main-title {
  /*color: #ffffff;*/
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.sub-title {
  color: rosybrown;                 /* #d1d5db Light Gray color */
  font-size: .95rem;
  margin: 4px 0 0 0;              /* Kaunting distansya mula sa main title */
  font-weight: 400;
}


/* Buong Header Background */
.site-header {
  background-color: yellow; /* Dark blue background mo #1b3687 */
  padding: 12px 25px;
  width: 100%;
}

/* Flex Container na nagpapadikit at nagpapapantay sa 3 parts (Logos, Title, Clock) */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  max-width: 2000px;
  margin: 0 auto;
}

/* 1. LOGOS (Kaliwa) */
.header-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-img.logo-larger {
  height: 75px; /* Bahagyang mas malaki ang pangalawang logo */
}

/* 2. TITLES (Gitna) */
.header-titles {
  display: flex;
  flex-direction: column; /* Napapababa nito ang sub-title sa ilalim ng H1 */
  justify-content: center;
}

.header-titles h1 {
  /*font-family: 'Graduate', 'Arial Black', sans-serif;
  color: #0000ff;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  /* Outline / Border effect */
  /*-webkit-text-stroke: 0.5px #ffffff; /* Puting linya sa gilid */
  /*filter: drop-shadow(0px 0px 1px #0d2380);*/

  font-family: 'Graduate', 'Arial Black', sans-serif;
  font-size: 3.0rem; /* I-adjust ang laki depende sa sukat ng header */
  font-weight: bold;
  line-height: 1;
  color: #0b2580; /* Dark blue fill color #0b2580*/
  text-transform: uppercase;
  letter-spacing: 0.0em;;
  margin: 0;
  padding: 0;

  /* STRETCH LETTER WIDTH HORIZONTALLY */
  display: inline-block;          /* Required for transform to work on h1 */
  transform: scaleX(1.25);         /* 1.15 expands width by 25% (adjust as needed) */
  transform-origin: center;       /* Keeps alignment centered */

  /* Double-line / Inline outline effect */
  -webkit-text-stroke: 1px #ffffff;; /* White inner border */
  paint-order: stroke fill;          /* Prevents the stroke from eating into the letter */

 text-shadow: 
    /*0 0 2px #0b2580,
    1px 1px 0 #0b2580,
    -1px -1px 0 #0b2580,
    1px -1px 0 #0b2580,
    -1px 1px 0 #0b2580;*/
    -1px -1px 0 #0b2580,  
     1px -1px 0 #0b2580,
    -1px  1px 0 #0b2580,
     1px  1px 0 #0b2580,
     0px  0px 4px rgba(11, 37, 128, 0.8);
}

.header-titles .subtitle {
  color: black;     /*#d1d5db*/
  font-size: 0.9rem;
  margin: 1px 0 0 0;
  font-weight: 400;
  /* STRETCH LETTER WIDTH HORIZONTALLY */
  display: inline-block;          /* Required for transform to work on h1 */
  transform: scaleX(1.25);         /* 1.15 expands width by 25% (adjust as needed) */
  transform-origin: centered;       /* Keeps alignment centered */
}

/* 3. SOCIAL + CLOCK (Kanan) */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.social-bar a {
  color: #000000;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-bar a:hover {
  color: #60a5fa;   /*#60a5fa*/
}

/* PST Clock Text Styles */
.pst-widget {
  text-align: right;
  font-family: system-ui, -apple-system, sans-serif;
}

.pst-label {
  font-size: 0.65rem;
  color: black;   /*#9ca3af*/
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pst-time {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.1;
}

.pst-date {
  font-size: 0.75rem;
  color: #000000;   /*#d1d5db*/
}

/* Siguraduhin na ang card ay nakahanda sa responsive chart */
.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

/* Kusa itong magfi-fit sa loob ng card */
.chart-iframe {
  width: 100%;             /* Kakainin ang buong lapad ng card */
  max-width: 100%;        /* Maiiwasan ang paglagpas sa gilid */
  height: 280px;          /* Sakto at tamang taas para sa graph */
  object-fit: contain;    /* Sisiguraduhing buo at hindi bawas ang imahe */
  aspect-ratio:16/9;
  border: none;
  margin: 10px 0;         /* May tamang puwang sa taas at baba */
}

.marquee-container {
  width: 100%;
  background-color: #29b6f6; /* Light blue banner background */
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 10px 0;
}

.marquee-icon {
  height: 25px;      /* Taas ng logo */
  width: auto;       /* Mapanatili ang tamang hugis ng logo */
  flex-shrink: 0;     /* Siguradong hindi maliliit/mawawala ang logo */
  margin-right: 15px; /* Optional spacing between logo and text */
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  /* Adjust 12s to make it faster (e.g. 8s) or slower (e.g. 20s) */
  animation: continuous-scroll 12s linear infinite; 
  align-items: center; /* Vertically aligns image and text at the middle */
  width: max-content; /* Keeps track items in a single horizontal row */
}

.marquee-track span {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #3e2723;
  text-transform: uppercase;
}


.marquee-icon {
  /* Prevents the image from squishing if the text wraps */
  flex-shrink: 0; 
}

/* Seamless infinite scroll animation */
@keyframes continuous-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%); /* Moves exactly half the width so it loops perfectly */
  }
}

/* Optional: Pause scrolling when hovering with mouse */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}


/* Mobile View Adjustment (para sa screens na 768px pababa) */
@media screen and (max-width: 768px) {

  /* 1. Paliitin ang padding/space sa paligid ng buong Navigation Bar */
  nav, .navbar {
    padding: 5px 10px !important;
  }

  /* 2. Paliitin ang font size at spacing ng mga menu items/links */
  nav a, .navbar a, .nav-link {
    font-size: 0.8rem !important; /* Mula sa dating ~1rem, ginawang mas maliit */
    padding: 6px 8px !important;  /* Bawas sa space sa loob ng buttons */
  }

  /* 3. Kung naka-flex/wrap ang menu items, ayusin ang distansya nila */
  nav ul, .nav-menu {
    gap: 5px !important;          /* Liitan ang pagitan ng mga menu items */
    padding: 0 !important;
  }

  /* 4. Paliitin din ang logo sa loob ng navbar (kung mayroon) */
  .nav-logo, navbar img {
    height: 20px !important;      /* Adjust base sa laki ng logo mo */
  }
}



/* Layout alignment for the right section */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Visitor Counter Styling */
.visitor-counter-container {
  display: flex;
  align-items: center;
}

.visitor-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1); /* Subtle dark translucent fill */
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.visitor-icon {
  font-size: 1.1rem;
  color: #ffffff; /* Adjust icon color to match your theme #00bcd4*/
}

.visitor-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;

}

.visitor-label {
  font-size: 0.65rem;
  color: #ffffff; /* Adjust icon color to match your theme #00bcd4*/
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 100;
  align-items: center;
}

.visitor-count {
  font-size: 0.95rem;
  color: #ffffff; /* Adjust icon color to match your theme #00bcd4*/
  font-weight: bold;
  letter-spacing: 1px;
}
















/* ============================================================
   MOBILE HEADER ADJUSTMENTS (Paliitin at Iisa ang Linya)
   Target: Screens 768px and below (Smartphones & Tablets)
   ============================================================ */
@media screen and (max-width: 768px) {

  /* 1. Paliitin ang padding ng buong Header at bawasan ang gap */
  .site-header {
    padding: 6px 8px !important; /* Binawasan ang padding para hindi mataba */
  }

  .header-container {
    display: flex !important;
    flex-direction: row !important; /* Tinitiyak na iisang linya lang horizontally */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important; /* Mula 100px, ginagawang 6px para magkasya lahat */
    padding: 0 4px !important;
  }

  /* 2. Paliitin ang laki ng mga Logos sa kaliwa */
  .header-logos {
    gap: 4px !important;
    flex-shrink: 0; /* Pigilan ang pagpisat sa logo */
  }

  .header-img {
    height: 30px !important; /* Mula 60px -> 30px */
  }

  .header-img.logo-larger {
    height: 36px !important; /* Mula 75px -> 36px */
  }

  /* 3. Paliitin ang Title at Subtitle sa gitna */
  .header-titles {
    flex-shrink: 1; /* Pinapayagang mag-adjust ang laki sa gitna */
    min-width: 0;
  }

  .header-titles h1 {
    font-size: 0.85rem !important; /* Mula 3.0rem -> 0.85rem para magkasya */
    letter-spacing: 0 !important;
    transform: none !important; /* Tinanggal muna ang scaleX(1.25) sa mobile para hindi lumampas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Kakainin ng ellipsis (...) kung sakaling sobrang sikip */
    -webkit-text-stroke: 0.01px #ffffff !important;
  }

  .header-titles .subtitle {
    font-size: 0.55rem !important; /* Mula 0.9rem -> 0.55rem */
    transform: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4. Paliitin ang Right Section (PST Clock at Visitor Counter) */
  .header-right {
    display: flex !important;
    flex-direction: row !important; /* Naka-horizontal layout pa rin sa kanan */
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0; /* Pigilan ang pagkawala sa screen */
  }

  /* PST Clock adjustments */
  .pst-widget {
    text-align: right;
  }

  .pst-label {
    font-size: 0.45rem !important;
    letter-spacing: 0;
  }

  .pst-time {
    font-size: 0.75rem !important; /* Mula 1.3rem -> 0.75rem */
  }

  .pst-date {
    font-size: 0.5rem !important;
    display: none; /* Tinatago ang buong petsa sa mobile para sa karagdagang space (Opsyonal) */
  }

  /* Visitor Counter adjustments */
  .visitor-widget {
    padding: 3px 6px !important;
    gap: 4px !important;
  }

  .visitor-icon {
    font-size: 0.75rem !important;
  }

  .visitor-label {
    font-size: 0.45rem !important;
  }

  .visitor-count {
    font-size: 0.7rem !important;
  }
}
