 :root {
    --maroon: #6A1020;
    --maroon-dark: #4d0a15;
    --gold: #C89B3C;
    --gold-light: #e6c170;
    --navy: #123B68;
    --cream: #FAF8F2;
    --white: #ffffff;
    --text-dark: #2C3539;
    --text-muted: #6c757d;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    --font-quote: 'Cormorant Garamond', serif;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(106, 16, 32, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
  }

  body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6, .display-6 {
    font-family: var(--font-heading);
    color: var(--maroon);
    font-weight: 700;
  }

  .skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--maroon);
    color: white; padding: 8px; z-index: 100;
  }
  .skip-link:focus { top: 0; }

  /* ============ TOPBAR ============ */
  .topbar {
    background-color: var(--navy);
    color: var(--cream);
    font-size: 0.85rem;
    padding: 8px 0;
  }
  .topbar a { color: var(--cream); text-decoration: none; transition: var(--transition); }
  .topbar a:hover { color: var(--gold); }
  .topbar .sep { margin: 0 10px; opacity: 0.5; }

  /* ============ INSTITUTIONAL HEADER ============ */
  .institutional-header { background: var(--white); border-bottom: 3px solid var(--maroon); }
  .header-brand-block { display: flex; align-items: center; gap: 15px; }
  .header-brand-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--maroon); margin: 0; line-height: 1.2; }
  .header-center { text-align: center; }
  .assoc-name { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--maroon); margin: 0; }
  .assoc-sub { font-size: 1rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
  .crest { font-size: 2.5rem; color: var(--gold); }

  /* ============ STICKY NAV ============ */
  .navbar-institutional { background: var(--maroon); padding: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
  .navbar-institutional .nav-link { color: var(--white); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; padding: 1.2rem 1rem !important; letter-spacing: 0.5px; transition: var(--transition); }
  .navbar-institutional .nav-link:hover, .navbar-institutional .nav-link.active { color: var(--gold); background: rgba(255,255,255,0.05); }
  .btn-join { background: var(--gold); color: var(--maroon); font-weight: 600; border-radius: 30px; padding: 8px 24px; transition: var(--transition); text-transform: uppercase; font-size: 0.85rem; }
  .btn-join:hover { background: var(--white); color: var(--maroon); }

  /* ============ BUTTONS & UTILS ============ */
  .btn-gold { background: var(--gold); color: var(--maroon); font-weight: 600; padding: 12px 25px; border-radius: 30px; border: 2px solid var(--gold); transition: var(--transition); text-decoration: none; display: inline-block; }
  .btn-gold:hover { background: transparent; color: var(--gold); }
  .btn-outline-cream { border: 2px solid var(--cream); color: var(--cream); padding: 12px 25px; border-radius: 30px; font-weight: 600; transition: var(--transition); text-decoration: none; display: inline-block; }
  .btn-outline-cream:hover { background: var(--cream); color: var(--maroon); }
  .bg-cream { background-color: var(--cream); }
  .section-pad { padding: 80px 0; }
  
  /* Section Headings */
  .eyebrow { font-size: 0.9rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
  .divider-orn { margin: 15px auto 25px; color: var(--gold); font-size: 0.8rem; position: relative; width: 100px; text-align: center; }
  .divider-orn::before, .divider-orn::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--gold); }
  .divider-orn::before { left: 0; } .divider-orn::after { right: 0; }
  .section-lede { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; }

  /* ============ HERO CAROUSEL ============ */
  .hero-carousel { position: relative; overflow: hidden; background-color: var(--maroon-dark); }
  .hero-carousel .carousel-item { 
    padding: 100px 0; 
    min-height: 80vh; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
  }
  .hero-carousel .carousel-item::before { 
    content: ''; 
    position: absolute; inset: 0; 
    background: linear-gradient(135deg, rgba(77, 10, 21, 0.9) 0%, rgba(106, 16, 32, 0.8) 100%); 
    z-index: 1;
  }
  .hero-carousel .container-lg { position: relative; z-index: 3; }
  .hero-carousel .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(200, 155, 60, 0.2); z-index: 2; pointer-events: none; }
  .hero-carousel .r1 { width: 600px; height: 600px; top: -200px; right: -100px; }
  .hero-carousel .r2 { width: 400px; height: 400px; bottom: -150px; left: -100px; }
  .hero-carousel h1 { color: var(--white); font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
  .hero-carousel h1 em { color: var(--gold); font-style: normal; }
  .lede { color: #e7d9d1; font-size: 1.1rem; line-height: 1.6; }
  
  .hero-badge { display: inline-block; background: rgba(200, 155, 60, 0.2); color: var(--gold); padding: 6px 15px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(200, 155, 60, 0.4); }
  .hero-seminar-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: var(--radius); }
  .hero-seminar-card .tag { background: var(--gold); color: var(--maroon); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
  .hero-seminar-card h3 { color: var(--white); margin: 15px 0 10px; }
  .date-pill { display: inline-block; background: rgba(255,255,255,0.1); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-top: 10px; }
  .hero-seminar-card ul { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: var(--white); }
  .hero-seminar-card ul li { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 5px;}
  .hero-seminar-card ul li b { color: var(--gold); }

  /* Carousel Controls */
  .carousel-indicators [data-bs-target] { background-color: var(--gold); height: 4px; }
  .carousel-control-prev, .carousel-control-next { z-index: 10; width: 5%; }

  /* ============ STATS ============ */
  .stats-strip { background: var(--gold); padding: 40px 0; color: var(--maroon); }
  .stat-item { border-right: 1px solid rgba(106, 16, 32, 0.2); padding: 10px; }
  .stat-item:last-child { border-right: none; }
  .stat-item i { font-size: 2rem; opacity: 0.8; }
  .stat-item .num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; line-height: 1; margin: 10px 0; }
  .stat-item .lbl { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }

  /* ============ PRESIDENT & CARDS ============ */
  .president-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
  .president-photo { background: var(--cream); display: flex; align-items: center; justify-content: center; min-height: 300px; border-right: 1px solid rgba(0,0,0,0.05); }
  .avatar-initials { width: 150px; height: 150px; border-radius: 50%; background: var(--maroon); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 3rem; font-weight: 700; border: 5px solid var(--cream); box-shadow: var(--shadow-sm); }
  .president-quote { font-family: var(--font-quote); font-size: 1.6rem; color: var(--maroon); line-height: 1.4; font-style: italic; border-left: 4px solid var(--gold); padding-left: 20px; }
  .signature-line { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--maroon); }

  .about-card, .pillar-card, .news-card, .pub-card, .plan-card, .contact-card {
    background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition); border: 1px solid rgba(0,0,0,0.05);
  }
  .about-card:hover, .pillar-card:hover, .news-card:hover, .pub-card:hover, .plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
  .about-card i.big { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; display: block; }
  
  .pillar-card { text-align: center; }
  .icon-ring { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--maroon); border: 2px dashed var(--gold); }

  /* ============ OFFICE BEARERS ============ */
  .bearer-card { background: var(--white); border-radius: var(--radius); padding: 25px; text-align: center; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition); }
  .bearer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .bearer-top { position: relative; margin-bottom: 20px; }
  .bearer-avatar { width: 100px; height: 100px; margin: 0 auto; background: var(--maroon); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-family: var(--font-heading); font-weight: 700; border: 4px solid var(--cream); }
  .bearer-role-badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--maroon); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; }
  .bearer-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
  .bearer-card .occ { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
  .bearer-card .loc { font-size: 0.8rem; color: var(--navy); font-weight: 500; }

  /* ============ AUTO-SCROLL TRACKS ============ */
  .ec-track-wrap, .alumni-track-wrap { overflow: hidden; white-space: nowrap; padding: 20px 0; position: relative; }
  .ec-track-wrap::before, .ec-track-wrap::after, .alumni-track-wrap::before, .alumni-track-wrap::after { content:''; position:absolute; top:0; width:100px; height:100%; z-index:2; }
  .ec-track-wrap::before, .alumni-track-wrap::before { left:0; background: linear-gradient(to right, var(--white), transparent); }
  .ec-track-wrap::after, .alumni-track-wrap::after { right:0; background: linear-gradient(to left, var(--white), transparent); }
  
  .ec-track, .alumni-track { display: inline-flex; gap: 20px; animation: scrollTrack 40s linear infinite; }
  .ec-track-wrap:hover .ec-track, .alumni-track-wrap:hover .alumni-track { animation-play-state: paused; }
  @keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

  .ec-chip { display: inline-flex; flex-direction: column; align-items: center; background: var(--cream); padding: 20px; border-radius: var(--radius); min-width: 250px; border: 1px solid rgba(0,0,0,0.05); }
  .ec-chip .ec-avatar { width: 70px; height: 70px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-family: var(--font-heading); margin-bottom: 15px; }
  .ec-chip h5 { font-size: 1rem; margin: 0; white-space: normal; text-align: center; }
  .ec-chip small { font-size: 0.8rem; color: var(--text-muted); white-space: normal; text-align: center; margin-bottom: 10px; }
  .badge-buey { background: var(--maroon); color: var(--white); font-weight: 400; position:relative; margin-top:5px; bottom:auto; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; text-transform: uppercase;}

  .alumni-card { display: inline-flex; flex-direction: column; background: var(--white); padding: 25px; border-radius: var(--radius); min-width: 280px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); text-align: center; }
  .alumni-avatar-ring { width: 80px; height: 80px; margin: 0 auto 15px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--maroon), var(--gold)); }
  .alumni-avatar-ring .inner { width: 100%; height: 100%; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--navy); }
  .alumni-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
  .alumni-card .batch { font-size: 0.8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
  .alumni-card .meta-line { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 8px; }

  /* ============ DIRECTORY SEARCH ============ */
  .directory-search { max-width: 600px; margin: 0 auto 30px; position: relative; display: flex; }
  .directory-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
  .directory-search input { width: 100%; padding: 15px 15px 15px 45px; border: 1px solid rgba(0,0,0,0.1); border-radius: 30px 0 0 30px; font-family: var(--font-body); outline: none; transition: var(--transition); }
  .directory-search input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(106,16,32,0.1); }
  .directory-search button { background: var(--maroon); color: white; border: none; padding: 0 25px; border-radius: 0 30px 30px 0; font-weight: 600; cursor: pointer; transition: var(--transition); }
  .directory-search button:hover { background: var(--navy); }
  
  .member-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; max-height: 400px; overflow-y: auto; padding: 10px; }
  .member-card { background: var(--white); padding: 15px; border-radius: var(--radius); text-align: center; border: 1px solid rgba(0,0,0,0.05); }
  .member-card .ec-avatar { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 10px; background: var(--cream); color: var(--maroon); border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); }
  .member-empty { display: none; text-align: center; color: var(--text-muted); padding: 40px; font-style: italic; }

  /* ============ SEMINAR & ACCORDION ============ */
  .seminar-hero-card { background: var(--maroon); color: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
  .theme-badge { background: var(--gold); color: var(--maroon); font-weight: 700; font-size: 0.8rem; padding: 5px 12px; border-radius: 4px; text-transform: uppercase; }
  .timeline { border-left: 2px solid var(--gold); padding-left: 20px; margin-top: 20px; }
  .timeline-item { position: relative; margin-bottom: 20px; }
  .timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--maroon); border: 2px solid var(--gold); }
  .timeline-item .tdate { font-weight: 700; color: var(--maroon); font-size: 1.1rem; }
  .timeline-item .tlabel { font-size: 0.9rem; color: var(--text-muted); }

  .accordion-buey .accordion-item { border: 1px solid rgba(0,0,0,0.05); margin-bottom: 10px; border-radius: var(--radius); overflow: hidden; }
  .accordion-buey .accordion-button { font-family: var(--font-heading); font-weight: 600; color: var(--navy); background: var(--white); padding: 1.2rem; }
  .accordion-buey .accordion-button:not(.collapsed) { color: var(--maroon); background: var(--cream); box-shadow: none; }
  .accordion-buey .accordion-button:focus { box-shadow: none; border-color: transparent; }
  .accordion-buey .accordion-body ul li { margin-bottom: 8px; position: relative; padding-left: 20px; font-size: 0.95rem; }
  .accordion-buey .accordion-body ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); font-weight: bold; font-size: 1.2rem; line-height: 1; }

  /* ============ NEWS & PUBS ============ */
  .news-date-badge { display: inline-block; background: var(--cream); color: var(--maroon); font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; border: 1px solid rgba(0,0,0,0.05); }
  .pub-fee { font-family: var(--font-heading); font-size: 2.5rem; color: var(--maroon); font-weight: 700; line-height: 1; margin: 15px 0; }
  
  /* ============ GALLERY ============ */
.gallery-tile{
  aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; position:relative;
  background:linear-gradient(150deg, var(--maroon-tint), var(--white)); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center;
}
.gallery-tile.placeholder{border:1px dashed var(--gold-2); color:var(--maroon); padding:1rem;}
.gallery-tile.placeholder i{font-size:1.8rem; color:var(--gold); margin-bottom:.4rem;}
.gallery-tile.placeholder small{font-size:.72rem; color:var(--ink-soft);}
.gallery-tile img{
  width:100%; height:100%;  display:block; transition:transform .5s ease;
}
.gallery-tile:hover img{transform:scale(1.08);}
.gallery-caption{
  position:absolute; left:0; right:0; bottom:0; padding:.9rem 1rem .7rem;
  background:linear-gradient(0deg, rgba(20,10,10,.82), transparent);
  color:#fff; text-align:left; font-family:var(--font-eyebrow); font-size:.68rem;
  letter-spacing:.06em; text-transform:uppercase;
}
  
  /* ============ TESTIMONIALS ============ */
  .testimonial-card { text-align: center; }
  .quote-ic { font-size: 2.5rem; color: var(--gold); opacity: 0.5; margin-bottom: 15px; display: block; }
  .testimonial-card p { font-family: var(--font-quote); font-size: 1.3rem; font-style: italic; color: var(--navy); }

  /* ============ MEMBERSHIP ============ */
  .plan-card { text-align: center; position: relative; }
  .plan-card.featured { border: 2px solid var(--gold); transform: scale(1.05); box-shadow: var(--shadow-md); }
  .plan-card.featured:hover { transform: scale(1.05) translateY(-5px); }
  .ribbon-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--maroon); font-size: 0.8rem; font-weight: 700; padding: 4px 15px; border-radius: 20px; text-transform: uppercase; }
  .plan-card h5 { margin-bottom: 15px; }
  .plan-card .price { font-family: var(--font-heading); font-size: 3rem; color: var(--maroon); font-weight: 700; line-height: 1; margin-bottom: 5px; }
  .plan-card ul { list-style: none; padding: 0; margin-top: 25px; text-align: left; }
  .plan-card ul li { margin-bottom: 12px; font-size: 0.9rem; color: var(--text-dark); display: flex; gap: 10px; }
  .plan-card ul li i { color: var(--gold); }

  /* ============ DOWNLOADS ============ */
  .download-item { display: flex; align-items: center; gap: 15px; background: var(--white); padding: 20px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.05); text-decoration: none; color: var(--text-dark); transition: var(--transition); }
  .download-item:hover { box-shadow: var(--shadow-md); border-color: var(--gold); transform: translateX(5px); }
  .dl-ic { width: 50px; height: 50px; background: var(--cream); color: var(--maroon); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

  /* ============ CTA BAND ============ */
  .cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 60px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
  .cta-band h2 { color: var(--white); margin-bottom: 20px; }

  /* ============ CONTACT ============ */
  .contact-row { display: flex; gap: 15px; margin-bottom: 20px; }
  .contact-row i { font-size: 1.5rem; color: var(--gold); }
  .form-control-buey { border-radius: 8px; padding: 12px 15px; border: 1px solid rgba(0,0,0,0.1); }
  .form-control-buey:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(106,16,32,0.1); }
  .map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; border: 1px solid rgba(0,0,0,0.05); }

  /* ============ FOOTER ============ */
  .site-footer { background: var(--maroon-dark); color: rgba(255,255,255,0.8); padding: 60px 0 20px; font-size: 0.9rem; }
  .site-footer h5 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
  .site-footer ul { list-style: none; padding: 0; }
  .site-footer ul li { margin-bottom: 10px; }
  .site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition); }
  .site-footer a:hover { color: var(--gold); padding-left: 5px; }
  .social-ic { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; margin-top: 15px; transition: var(--transition); }
  .social-ic:hover { background: var(--gold); color: var(--maroon); padding-left: 0 !important; transform: translateY(-3px); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; }

  /* ============ UTILS ============ */
  #backToTop { position: fixed; bottom: 30px; right: 30px; background: var(--gold); color: var(--maroon); width: 45px; height: 45px; border-radius: 50%; border: none; font-size: 1.2rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99; display: flex; align-items: center; justify-content: center; }
  #backToTop.show { opacity: 1; visibility: visible; }
  #backToTop:hover { background: var(--maroon); color: var(--white); transform: translateY(-3px); }

  /* Animation Classes */
  .reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
  .reveal.in { opacity: 1; transform: translateY(0); }