/* static/style.css
   Mobile-first, vibrant gradients, responsive layout and gallery lightbox styles.
   Theme derived from brochure: deep blue + warm yellow accents.
*/

:root{
  --primary:#0f4c81;
  --primary-2:#0b3f6b;
  --accent:#f6b300;
  --muted:#7aa0c9;
  --bg:#f7f9fb;
  --text:#012433;
  --white:#ffffff;
  --card:#ffffff;
  --shadow: 0 8px 22px rgba(11,63,107,0.12);
  --radius:12px;
  --container:1280px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:15px;
}

/* container */
.container{max-width:var(--container);margin:0 auto;padding:20px 32px;}

/* header */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:999;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
  box-shadow:0 4px 16px rgba(0,0,0,0.15);
}
body{padding-top:70px;} /* offset so content not hidden under fixed header */


.nav-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0}

.brand {
  display: grid; /* allows precise positioning */
  grid-template-columns: auto 1fr; /* logo | brand text & subtitle */
  align-items: center;
  text-decoration: none;
  color: inherit;
  column-gap: 8px; 
}

.brand-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2px;
  display: block;
  color: #f6b300;
  /* margin-top: 0px; */
  position: relative;
  top: -10px;

}
/* .brand-text{font-weight:700;font-size:1.5rem;letter-spacing:0.2px;color: #f6b300;} */

.subtitle {
  grid-column: 2; /* keeps it directly under brand text */
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.1;
  position: relative;
  margin-top: -32px; /* small negative value to tighten space */
}
@media (max-width: 600px) {
  .subtitle {
    display: none;
  }
}


/* .subtitle{color:var(--accent);font-weight:700;margin:8px 0 12px} */

.logo{
    height:80px;
    width:auto;
    margin-top: 8px; /* moves logo slightly downward */
    display:inline-block;
    align-self:flex-start /* aligns logo with brand text & subtitle baseline */

}

/* nav */
.main-nav ul{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.main-nav a{color:var(--white);text-decoration:none;font-weight:600;padding:8px 10px;border-radius:8px;opacity:0.95}
.main-nav a:hover{background:skyblue; font-weight:1000;color: #09041b;}

.cta{background:var(--accent);color:var(--primary-2);padding:8px 14px;border-radius:10px;font-weight:700;text-decoration:none}
.nav-toggle{display:none;background:none;border:0;color:var(--white);cursor:pointer}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--white);margin:3px 0;border-radius:2px}
.nav-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 0}

/* hero */
.hero{padding:36px 0;background: linear-gradient(135deg, #0f4c81 0%, #215f9a 100%);color:#fff}
.hero-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:center}
.hero-left h1{font-size:1.8rem;margin:0 0 20px;color:#fff}
.lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.98);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
  max-width: 680px;
  text-align: justify;
}
.lead {
  animation: fadeInUp 1.2s ease both;
}

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

@media (max-width: 600px){
  .lead{
    font-size: 1rem;
    line-height: 1.6;
  }
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  color: rgba(255,255,255,0.85); /* slightly dimmer than lead text */
  font-size: 1rem;
}

.hero-bullets li strong {
  color: #ffd65a; /* golden accent for key text */
  font-weight: 600;
}

/* .hero-bullets li{padding:5px 0} */

.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700}
/* .btn-primary{background:var(--white);color:var(--primary-2)} */
.btn-outline{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,0.12);padding:8px 12px}

/* hero visual */
.card-visual{position:relative;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);background:var(--card)}
.card-visual img{width:100%;height:220px;object-fit:cover;display:block}
.badge-24{
  position:absolute;
  left:14px;
  bottom:14px;
  background:rgba(246,179,0,0.92);
  color:#111;
  font-weight:700;
  font-size:0.95rem;
  padding:8px 12px;
  border-radius:10px 10px 10px 0;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
}
.badge-24 span{
  font-weight:600;
  opacity:0.9;
}

/* updates */
/* Recent Updates - horizontal scroll ticker */
.updates {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f6b300, #ffd65a);
  color: #0b3f6b;
  font-weight: 600;
  white-space: nowrap;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.updates-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 50s linear infinite;
  align-items: center;
}

.update-item {
  display: inline-block;
  padding: 10px 40px;
  font-size: 0.95rem;
}

.update-item strong {
  color: #0a2f4d;
}

/* Pause animation on hover */
.updates:hover .updates-track {
  animation-play-state: paused;
}

/* Ticker keyframes */
@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive tweak */
@media (max-width: 600px) {
  .update-item {
    padding: 8px 24px;
    font-size: 0.9rem;
  }
}

.updates .container{font-size:0.95rem;color:var(--text)}
.update-dot{color:var(--accent);margin:0 8px}

/* sections */
.section{padding:28px 0}
.section h2{font-size:1.2rem;margin:0 0 10px;color:inherit}
.muted{color:rgba(0,0,0,0.55);margin-bottom:12px}

/* about */
.about{background:linear-gradient(135deg,#ffffff 0%,#f3f8ff 100%);color:var(--text)}
.about-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.about-grid h3{margin:0 0 8px;color:var(--primary-2)}

/* facilities */
/* .contact{background:linear-gradient(135deg,#0f4c81 0%,#0b3f6b 100%);color:#fff} */

.facilities{background:linear-gradient(135deg,#f6b300 0%,#ffd65a 100%);color:var(--text)}
.facility-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
/* Facility card styling with hover animation */
.facility-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

/* Subtle image styling */
.facility-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

/* Hover animation — professional "pop" */
.facility-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Add light image zoom inside card */
.facility-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  background-color: #faf7f1; /* off-white with a slight warm tint */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.facility-card:hover h3 {
  color: #f6b300; /* your brand gold */
}

.facility-card:active {
  transform: scale(0.98);
}

.facility-card h4{margin:0 0 8px;color:var(--primary-2);font-size:1rem}

/* gallery */
.gallery{background:linear-gradient(135deg,#e7f0ff 0%,#fefefe 100%);color:var(--primary-2)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.gallery-item img{width:100%;height:160px;object-fit:cover;border-radius:12px;box-shadow:var(--shadow);cursor:pointer;transition:transform .25s ease}
.gallery-item img:hover{transform:scale(1.03)}

/* lightbox */
.lightbox{
  display:none;
  position:fixed;
  z-index:9999;
  top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.92);
  align-items:center;justify-content:center;
  padding:20px;
}
.lightbox .lightbox-content{
  max-width:100%;
  max-height:85vh;
  border-radius:10px;
  object-fit:contain;
}
.lightbox .close, .lightbox .prev, .lightbox .next{
  position:fixed;z-index:10000;border:0;background:transparent;color:#fff;font-size:26px;padding:10px;cursor:pointer}
.lightbox .close{top:18px;right:18px}
.lightbox .prev{left:14px;top:50%;transform:translateY(-50%)}
.lightbox .next{right:14px;top:50%;transform:translateY(-50%)}
.contact-info p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  text-indent: 1.5em; /* adds a tab-like indent at line start */
}
.contact-info p:first-child {
  text-indent: 0; /* keeps “Address:” label aligned to the left */
}
.contact-info strong {
  color: #ffd65a; /* golden accent for labels */
  font-weight: 600;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* contact map */
.contact{background:linear-gradient(135deg,#0f4c81 0%,#0b3f6b 100%);color:#fff}
.contact .container{display:block}
.map-wrap iframe{
  width:100%;
  height:300px;
  border:0;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.3)
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); */

}

/* footer */
/* .facilities{background:linear-gradient(135deg,#f6b300 0%,#ffd65a 100%);color:var(--text)} */

/* .site-footer{background:linear-gradient(90deg,var(--primary-2),var(--primary));color:#fff;padding:18px 0;margin-top:14px} */
.site-footer{background:linear-gradient(135deg,#f6b300 0%,#ffd65a 100%);color:var(--text);color:#09041b; padding:18px 0;margin-top:14px}
.footer-grid{display:flex;flex-direction:column;gap:12px}
.footer-grid p, .footer-grid a{color:rgba(11, 3, 90, 0.95);text-decoration:none}
.social-links a{display:inline-block;margin-right:8px;color:var(--blue);text-decoration:none;background:rgba(255,255,255,0.06);padding:6px 8px;border-radius:6px}
/* Footer copyright alignment */
.container.copyright {
  text-align: center;              /* centers the text */
  font-size: 1rem;               /* slightly smaller than body text */
  color: rgba(7, 7, 7, 0.85);
  margin-top: 10px;                /* adds a bit of space above */
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15); /* optional subtle divider */
}

/* whatsapp FAB */
.whatsapp-fab{
  position:fixed;right:14px;bottom:14px;z-index:12000;
  display:inline-flex;align-items:center;gap:10px;
  background:linear-gradient(90deg,#25D366,#128C7E);
  color:#fff;padding:10px 14px;border-radius:999px;font-weight:700;text-decoration:none;box-shadow:0 10px 30px rgba(18,140,126,0.24)
}
.whatsapp-fab svg{width:20px;height:20px;display:block}
.whatsapp-fab span{font-size:0.95rem}

/* utilities */
.container{padding-left:16px;padding-right:16px}
.small{font-size:0.92rem;color:rgba(0,0,0,0.6)}

/* responsive layout adjustments */
@media (min-width:700px){
  .hero-grid{grid-template-columns:1fr 420px}
  .about-grid{grid-template-columns:repeat(3,1fr)}
  .facility-grid{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{flex-direction:row;justify-content:space-between;align-items:flex-start}
}

@media (max-width:520px){
  .gallery-item img{height:140px}
  .card-visual img{height:160px}
  .cta{display:none}
  .brand-text{display:inline}
  .hero-left h1{font-size:1.4rem}
}

@media (min-width:1000px){
  .nav-toggle{display:none}
  .main-nav ul{gap:18px}
}

@media (max-width:999px){
  .nav-toggle{display:block}
  .main-nav{position:fixed;top:68px;right:12px;background:linear-gradient(180deg,var(--primary),var(--primary-2));padding:12px;border-radius:10px;display:none}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:10px}
}

.visit-highlight {
  background: linear-gradient(90deg, #fff8e6, #fff3d6);
  border-left: 4px solid #f6b300;
  padding: 14px 18px;
  border-radius: 10px;
  color: #0b3f6b;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.visit-highlight .pin {
  margin-right: 8px;
  font-size: 1.2rem;
  color: #f6b300;
}

/* Typewriter animation */
.typewriter {
  overflow: hidden;              /* Ensures text is hidden until revealed */
  border-right: .12em solid #ffd65a; /* Simulated cursor */
  white-space: nowrap;
  /* margin: 0 auto; */
  letter-spacing: 0.04em;
  display: inline-block;
  animation:
    typing 2.8s steps(30, end),
    blink-caret 0.75s step-end infinite;
  width: max-content; /* allows the element to size itself to the actual text width */

}

/* Typing keyframes */
@keyframes typing {
  from { width: 0 }
  to { width: 50% }
}

/* Cursor blink effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #ffd65a; }
}

/* .visit-line {
  font-size: 1.05rem;
  color: #0f4c81;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(90deg, rgba(246,179,0,0.15), rgba(246,179,0,0.05));
  padding: 12px 14px;
  border-radius: 8px;
} */


/* accessibility focus */
a:focus, button:focus { outline: 3px solid rgba(15,76,129,0.18); outline-offset:3px; border-radius:6px; }

/* small helpers for cards */
.facility-card p, .about-grid p { margin:0; color:rgba(0,0,0,0.75); font-size:0.95rem; }

/* THis is for Login page style */
.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}
.card-header h2 {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-2);
}

/* --- Admin auth / login page styles --- */

.auth-main {
  min-height: calc(100vh - 70px); /* 70px = header offset already used in body padding */
  display: flex;
  align-items: center;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  text-align: center;
  color: var(--primary-2);
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
}

/* simple form controls (no Bootstrap needed) */
.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-2);
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  font-size: 0.95rem;
  font-family: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15,76,129,0.12);
}

.auth-submit {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  margin-top: 4px;
}

.auth-submit:hover {
  background: var(--primary-2);
}

.auth-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(0,0,0,0.55);
}

/* extra spacing so admin pages clear the fixed header */
.admin-main {
  margin-top: 8px;
  padding-top: 52px;   /* try 24–32px if you want more/less */

}

/* end of static/style.css */

