/*
Theme Name: MNAC Theme
Theme URI: https://mnac-aiimc.ca/
Author: Military Nurses Association of Canada
Description: Custom WordPress theme for the Military Nurses Association of Canada.
Version: 1.0
Text Domain: mnac
*/
/* ===============================
   MNAC Global Stylesheet
   =============================== */

/* Theme Variables */
:root{
  --mnac-orange-900:#7A2F12;
  --mnac-orange-700:#A54218;
  --mnac-orange-500:#C75B24;

  --mnac-blue-900:#0B2A4A;
  --mnac-blue-700:#12406E;

  --ink:#111827;
  --muted:#4B5563;
  --line:#E5E7EB;
  --bg:#FFFFFF;
  --soft:#F9FAFB;

  --radius:16px;
  --shadow:0 6px 18px rgba(0,0,0,.08);
  --max:1100px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  background:var(--bg);
  line-height:1.5;
}

.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Header */
header{
  background:linear-gradient(180deg, var(--mnac-orange-900), var(--mnac-orange-700), var(--mnac-orange-500));
  color:white;
  padding:20px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  gap:20px;
}

.logo img{
  height:125px;
  width:auto;
}

.title h1{
  margin:0;
  font-size:22px;
}

.title small{
  display:block;
  margin-top:4px;
  font-size:22px;
  opacity:.9;
  font-weight:600;
}

/* Navigation */
.navbar{
  background: var(--mnac-blue-900);
}

.navbar .wrap{
  display:flex;
  gap:28px;
  padding:12px 0;
  flex-wrap:wrap;
}

.navbar a{
  color:white;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}

.navbar a:hover{
  text-decoration:underline;
}

.navbar a.active{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Sections */
section{padding:40px 0}

h2{margin:0 0 10px 0}

.card{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
}

/* Footer */
footer{
  background:var(--mnac-blue-900);
  color:white;
  padding:30px 0;
  font-size:16px;
}

footer p{margin:0 0 8px 0}

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  border:0;
  cursor:pointer;
}

.btn-primary{
  background:var(--mnac-blue-900);
  color:white;
}

.btn-primary:hover{
  color:white;
  text-decoration:none;
}

.btn-secondary{
  background:var(--mnac-orange-700);
  color:white;
}

/* Grid Utilities */
.lines-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}

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

.line-item{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, #fff, var(--soft));
  padding:16px;
}

.line-item h3{
  margin:0 0 6px 0;
  font-size:16px;
  color:var(--mnac-blue-900);
}

.line-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* Quote Layout */
.quote-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap:14px;
  align-items:start;
  margin-top:14px;
}

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

.quote-card{
  border:2px solid var(--mnac-blue-900);     /* dark blue “cape” border */
  border-radius:var(--radius);
  background:#fff;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.quote-card blockquote{
  margin:0;
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
  font-style:italic;
  position:relative;
  padding:0 26px;                             /* space for quotes */
}

.quote-card blockquote::before{
  content:"“";                                /* opening quote */
  position:absolute;
  left:0;
  top:-8px;
  font-size:42px;
  font-weight:900;
  color:var(--mnac-orange-500);
  line-height:1;
}

.quote-card blockquote::after{
  content:"”";                                /* closing quote */
  position:absolute;
  right:0;
  bottom:-14px;
  font-size:42px;
  font-weight:900;
  color:var(--mnac-orange-500);
  line-height:1;
}

.quote-attrib{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.quote-attrib span{
  display:block;
  font-weight:600;
  opacity:.95;
}
/* Voices of Service Label */
.voice-label{
  font-size:11px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-weight:700;
  color:var(--mnac-orange-700);  /* darker orange */
  opacity:.8;                    /* keeps it subtle */
  margin-bottom:6px;
}

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}

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

label{
  display:block;
  font-weight:700;
  font-size:14px;
  margin-bottom:6px;
}

input, select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:white;
  font-size:15px;
}

input:focus, select:focus{
  outline:2px solid rgba(30,90,150,.25);
  outline-offset:2px;
}

.full{grid-column: 1 / -1;}

/* Photo Strip */
.photo-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin:20px 0 30px 0;
}

.photo-strip img{
  width:100%;
  height:250px;
  object-fit:cover;
  border-radius:12px;
}

@media (max-width: 1000px){
  .photo-strip{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .photo-strip{
    grid-template-columns: 1fr;
  }
}
/* Event Photos */
.event-photo-frame{
  width:100%;
  margin:10px 0 14px 0;
  text-align:center;
}

.event-photo-frame img{
  max-width:50%;
  max-height:320px;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.10);
  display:inline-block;
  background:#f7f7f7;
}
/* Highlight Photo Grid */
.highlight-photo-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:3px;
  margin:14px 0;
}

.highlight-photo-grid img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  display:block;
}

@media (max-width: 800px){
  .highlight-photo-grid{
    grid-template-columns:1fr;
  }

  .highlight-photo-grid img{
    height:auto;
  }
}
@media (max-width: 800px){
  .highlight-photo-grid{
    flex-direction:column;
  }

  .highlight-photo-grid img{
    width:100%;
  }
}
/*Resource Links Format */
.line-item h3 a{
  color: var(--mnac-blue-900);
  text-decoration: none;
  font-weight: 600;
}

.line-item h3 a:hover{
  text-decoration: underline;
  color: var(--mnac-blue-900);
}
/* Highlight text MNAC Orange */
.highlight-mnac{
  color: var(--mnac-orange-700);
  font-weight: 600;
}
/* YouTube Responsive Embed */
.video-wrapper{
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  margin: 20px 0;
}

.video-wrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Membership Page Forms */
.page-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 14px;
}

.page-actions h2{
  margin:0;
}

textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:white;
  font-size:15px;
  font-family:inherit;
  resize:vertical;
}

textarea:focus{
  outline:2px solid rgba(30,90,150,.25);
  outline-offset:2px;
}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
}

.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"]{
  margin:0;
  width:auto;
  flex:0 0 auto;
}

.checkbox-row label{
  margin:0;
  display:inline;
}

.education-option{
  display:grid;
  grid-template-columns:minmax(190px, auto) 1fr;
  gap:12px;
  align-items:center;
  margin:10px 0;
}

.education-option .checkbox-row{
  margin:0;
}

.education-option input[type="text"]{
  min-width:220px;
}

@media (max-width: 800px){
  .education-option{
    grid-template-columns:1fr;
  }
}

.payment-block{
  border-top:1px solid #d8e2ea;
  padding-top:14px;
  margin-top:18px;
}

.payment-block h3{
  margin:0 0 8px;
}

.disabled-field,
input[disabled],
textarea[disabled]{
  opacity:.6;
  cursor:not-allowed;
  background:#f6f7f8;
}

.voices-block{
  margin:20px 0;
}

/* MNAC Motto */
.motto-card{
  text-align:center;
  margin:18px 0 0;
  padding:18px 20px;
  border-top:2px solid var(--mnac-orange-500);
  border-bottom:2px solid var(--mnac-orange-500);
  background:linear-gradient(180deg, #fff, var(--soft));
}

.motto-line{
  color:var(--mnac-blue-900);
  font-size:30px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.motto-fr{
  margin-top:6px;
  color:var(--mnac-orange-700);
  font-size:30px;
  font-weight:800;
}

@media (max-width: 700px){
  .motto-line{
    font-size:24px;
  }

  .motto-fr{
    font-size:24px;
  }
}
.memorial-banner {
  display: block;
  text-decoration: none;
  margin: 1.5rem 0 2rem;
}

.memorial-banner-content {
  background: linear-gradient(
      rgba(12,31,63,0.92),
      rgba(12,31,63,0.92)
    );
  color: white;
  text-align: center;
  padding: 2rem;
  border-radius: 14px;
  border-left: 6px solid #b8a46a;
  border-right: 6px solid #b8a46a;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.memorial-banner:hover .memorial-banner-content {
  transform: translateY(-2px);
}

.memorial-banner-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: #d8c89a;
  margin-bottom: 0.4rem;
}

.memorial-banner-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.memorial-banner-dates {
  font-size: 1.1rem;
  color: #e8dfc5;
  margin-bottom: 0.7rem;
}

.memorial-banner-subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.memorial-banner-link {
  font-weight: 600;
  color: #d8c89a;
}
.memorial-banner-content {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
      rgba(12,31,63,0.95),
      rgba(12,31,63,0.95)
    );

  color: white;
  text-align: center;
  padding: 2rem 2rem 2rem 10rem;
  border-radius: 14px;
  border-left: 6px solid #b8a46a;
  border-right: 6px solid #b8a46a;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.memorial-banner-content::before {
  content: "";
  position: absolute;

  left: 20px;
  top: 0;
  bottom: 0;

  width: 160px;

  background-image: url("images/ida-crocker/ida-crocker-main.jpg");
  background-repeat: no-repeat;
  background-position: center left;
  background-size: contain;

  opacity: 0.22;
  filter: grayscale(100%);
  pointer-events: none;
}

.voices-section {
  margin: 20px 0;
}
/* Unit page photo strip */
.unit-photo-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 30px;
}

.unit-photo-strip figure {
  margin: 0 !important;
  width: auto !important;
}

.unit-photo-strip img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}

.unit-photo-strip figcaption {
  display: none;
}

@media (max-width: 1000px) {
  .unit-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .unit-photo-strip img {
    height: auto !important;
  }
}
/* ==========================================
   Event Card Layouts
   ========================================== */

/* Space between all event cards */
.unit-event-list {
    display: grid;
    gap: 20px;
}

/* Shared styling for Upcoming and Past cards */
.unit-event-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border: 1px solid var(--mnac-blue-700);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    overflow: hidden;
}

/* Past Events: image fills the left side */
.unit-event-image {
    display: block;
    height: 100%;
}

.unit-event-image img {
    display: block;
    width: 220px;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

/* Text spacing inside every card */
.unit-event-content {
    min-width: 0;
    padding: 16px 18px;
}

/* Upcoming Events: two cards per row */
.unit-event-list.unit-events-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 24px;
}

/* Upcoming cards: image above text */
.unit-event-list.unit-events-two-column .unit-event-card {
    grid-template-columns: 1fr;
}

.unit-event-list.unit-events-two-column .unit-event-image img {
    width: 100%;
    height: 220px;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
}

/* Responsive layout */
@media (max-width: 800px) {
    .unit-event-list.unit-events-two-column {
        grid-template-columns: 1fr;
    }

    .unit-event-card {
        grid-template-columns: 1fr;
    }

    .unit-event-image img,
    .unit-event-list.unit-events-two-column .unit-event-image img {
        width: 100%;
        height: auto;
        min-height: 0;
    }
}
/* ==========================================
   Single Post
   ========================================== */

.single-featured-image{

    margin:24px 0;

}

.single-featured-image img{

    width:100%;
    height:auto;
    border-radius:var(--radius);

}

.single-post-content{

    line-height:1.75;

}

.mnac-divider{

    margin:40px 0 30px;

    border:none;

    border-top:1px solid #d9dde2;

}

.mnac-post-navigation{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:10px;

}

.return-button{

    display:inline-block;

    padding:12px 22px;

    border:1px solid var(--mnac-blue-700);

    border-radius:var(--radius);

    color:var(--mnac-blue-700);

    text-decoration:none;

    font-weight:700;

    transition:.2s;

}

.return-button:hover{

    background:var(--mnac-blue-700);

    color:#fff;

}

@media (max-width:700px){

    .mnac-post-navigation{

        flex-direction:column;

        align-items:stretch;

    }

    .return-button{

        display:block;

        text-align:center;

    }

}
/* Standard quotation block — for quotations other than Voices of Service */
.mnac-quote {
  margin: 1.5rem 0;
  padding: 0.45rem 0 0.45rem 1.25rem;
  border-left: 4px solid rgba(224, 112, 32, 0.45);
  font-style: italic;
}

.mnac-quote p {
  margin: 0;
}

.mnac-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #666;
}
/* ==========================================
   WPForms Section Headings
   ========================================== */

.form-section{
    margin:36px 0 18px;
    padding-bottom:10px;
    border-bottom:2px solid var(--mnac-blue-700);
}

.form-section h2{
    margin:0;
    color:var(--mnac-blue-900);
    font-size:1.4rem;
}

.form-section p{
    margin:8px 0 0;
    color:var(--muted);
    font-size:0.95rem;
}