/*
Theme Name: CCUA Intranet Child (Astra)
Theme URI: https://example.com/
Description: Child theme starter for CCUA Intranet UI. Built to keep editing simple with Gutenberg patterns + (optional) ACF.
Author: Savvy Partner
Template: astra
Version: 0.1.0
Text Domain: ccua-intranet-child
*/

:root{
  --ccua-blue: #295DAB;
  --ccua-blue-2: #285DAA;
  --ccua-accent: #B14384;
  --ccua-bg: #EFF1F4;
  --ccua-card: #FFFFFF;
  --ccua-text: #252525;
  --ccua-muted: #3D3D3D;
  --ccua-radius-lg: 24px;
  --ccua-radius-md: 16px;
  --ccua-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Base typography */
body{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ccua-text);
  background: var(--ccua-bg);
}
h1,h2,h3{
  font-family: "Raleway", "Open Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
a{ color: var(--ccua-blue); }
a:hover{ color: var(--ccua-accent); }

/* Buttons */
.wp-element-button,
button,
input[type="submit"]{
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700;
}
.wp-element-button.is-style-ccua-primary,
.wp-element-button,
button,
input[type="submit"]{
  background: var(--ccua-accent) !important;
  border: 0 !important;
  color: #fff !important;
}
.wp-element-button.is-style-ccua-secondary{
  background: #fff !important;
  color: var(--ccua-blue) !important;
  border: 2px solid rgba(41,93,171,.25) !important;
}

/* Card */
.ccua-card{
  background: var(--ccua-card);
  border-radius: var(--ccua-radius-lg);
  box-shadow: var(--ccua-shadow);
  padding: 28px;
}
.ccua-card + .ccua-card{ margin-top: 24px; }

/* Hero (header gradient overlay like XD) */
.ccua-hero{
  position: relative;
  padding: 72px 0 48px;
  color: #fff;
  background: linear-gradient(105deg, rgba(41,93,171,.95) 0%, rgba(48,167,175,.85) 45%, rgba(41,93,171,.95) 100%);
  overflow: hidden;
}
.ccua-hero .ccua-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ccua-hero h1{ color:#fff; margin:0 0 8px; font-size: clamp(34px, 4vw, 52px); }
.ccua-hero p{ color: rgba(255,255,255,.9); margin:0; font-size: 18px; }

/* Login layout helper */
.ccua-login-wrap{
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 48px 18px;
}
.ccua-login-panel{
  width: min(760px, 100%);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ccua-shadow);
  padding: 44px 34px;
}
.ccua-login-panel h1{
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 10px 0 18px;
  text-align: center;
}
.ccua-form-row{ margin-bottom: 14px; }
.ccua-form-row label{ display:block; font-weight: 700; margin-bottom: 6px; color: var(--ccua-blue); }
.ccua-form-row input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f6f7f8;
  padding: 12px 14px;
}
.ccua-forgot{
  display:inline-block;
  margin-top: 8px;
  color: var(--ccua-accent);
  font-weight: 700;
}

/* FAQ accordion (works with <details>) */
.ccua-accordion details{
  border-top: 1px solid rgba(0,0,0,.07);
  padding: 14px 0;
}
.ccua-accordion details:first-child{ border-top: 0; }
.ccua-accordion summary{
  list-style: none;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--ccua-blue);
}
.ccua-accordion summary::-webkit-details-marker{ display:none; }
.ccua-accordion summary:after{
  content: "›";
  font-size: 28px;
  color: var(--ccua-accent);
  transform: rotate(90deg);
  transition: transform .15s ease;
}
.ccua-accordion details[open] summary:after{
  transform: rotate(-90deg);
}
.ccua-accordion .ccua-accordion-body{
  padding-top: 10px;
  color: #2e2e2e;
}

/* Simple responsive grid for dashboard cards */
.ccua-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
@media (max-width: 980px){
  .ccua-grid{ grid-template-columns: 1fr; }
}
/* LOGIN PAGE BACKGROUND (Wave image) */
body.ccua-login-page{
  background-image: url('assets/login-bg.jpg'); /* or .jpeg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Make login truly full-height + centered */
.ccua-login-wrap{
  min-height: 100vh; /* override calc(100vh - 120px) */
  padding: 48px 18px;
}

/* Optional: slightly soften background behind the card */
.ccua-login-panel{
  backdrop-filter: blur(2px);
}
/* LOGIN LOGO – force Astra logo to behave */
.ccua-login-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.ccua-login-logo .custom-logo-link{
  display: inline-block;
}

.ccua-login-logo img.custom-logo{
  max-width: 240px;
  height: auto;
  width: 100%;
}

