/* ============================================================
   SVN-COMAT | assets/css/svncomat.css
   Site-wide styles — Navy + Gold + Red brand
   ============================================================ */

:root {
  --navy:       #1C1C78;
  --navy-light: #2E2E9A;
  --navy-dark:  #0F0F5A;
  --gold:       #FFD700;
  --gold-dim:   #D4AF37;
  --gold-bg:    #FFF8DC;
  --red:        #C0202A;
  --red-light:  #FFEAEA;
  --white:      #FFFFFF;
  --bg-light:   #F5F5FA;
  --text-dark:  #1A1A1A;
  --text-muted: #5A5A6E;
  --border:     #E0E0F0;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', 'Noto Sans Tamil', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

body.lang-ta {
  font-family: 'Noto Sans Tamil', 'DM Sans', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Sans Tamil', serif;
}

/* ===== NOTIFICATION BAR ===== */
.notif-bar { background: var(--red); padding: 8px 0; position: sticky; top: 0; z-index: 1050; }
.notif-text { font-size: 12.5px; color: #fff; }
.notif-badge { background: var(--gold); color: var(--navy-dark); font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; }
.notif-link { color: var(--gold); font-weight: 500; text-decoration: underline; font-size: 12.5px; }
.lang-toggle .lang-btn { border: none; padding: 4px 13px; border-radius: 20px; font-size: 11.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.lang-toggle .lang-btn.active { background: var(--gold); color: var(--navy-dark); }
.lang-toggle .lang-btn.inactive { background: rgba(255,255,255,.18); color: #fff; }

/* ===== NAVBAR ===== */
.main-navbar { background: var(--navy); padding: 10px 0; position: sticky; top: 36px; z-index: 1040; border-bottom: 3px solid var(--gold); }
.nav-brand-logo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); object-fit: contain; background: #fff; }
.nav-brand-text .main-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.nav-brand-text .sub-name { font-size: 10px; color: var(--gold); letter-spacing: .04em; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 400; text-decoration: none; padding: 6px 10px; border-radius: 5px; transition: all .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); font-weight: 500; border-bottom: 2px solid var(--gold); border-radius: 0; }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: 7px 16px !important; border-radius: 6px !important; font-weight: 500 !important; border-bottom: none !important; }
.nav-cta:hover { background: #a01820 !important; color: #fff !important; }
.navbar-toggler-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 10px; border-radius: 5px; cursor: pointer; }
.mobile-nav { background: var(--navy-dark); padding: 12px 0; display: none; }
.mobile-nav a { display: block; padding: 9px 20px; color: rgba(255,255,255,.85); font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a:hover, .mobile-nav a.active-mobile { color: var(--gold); }
.mobile-nav.open { display: block; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--navy); padding: 50px 0 44px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; border: 50px solid rgba(255,215,0,.05); pointer-events: none; }
.breadcrumb-nav { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.breadcrumb-nav a { color: rgba(255,215,0,.6); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .sep { color: rgba(255,255,255,.3); margin: 0 4px; }
.page-title { font-size: clamp(24px,4vw,38px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.page-sub { font-size: 14px; color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.7; }
.gold-rule { width: 44px; height: 4px; background: var(--gold); border-radius: 2px; margin: 14px 0 0; }

/* ===== SECTION STYLES ===== */
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(22px,3.5vw,32px); font-weight: 600; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.section-gold-rule { width: 44px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 20px; }
.body-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ===== BUTTONS ===== */
.btn-red-solid { background: var(--red); color: #fff; border: none; padding: 11px 24px; border-radius: 7px; font-size: 13.5px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; cursor: pointer; }
.btn-red-solid:hover { background: #a01820; color: #fff; transform: translateY(-1px); }
.btn-gold-solid { background: var(--gold); color: var(--navy-dark); border: none; padding: 11px 24px; border-radius: 7px; font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; cursor: pointer; }
.btn-gold-solid:hover { background: var(--gold-dim); color: var(--navy-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; border: none; padding: 10px 22px; border-radius: 7px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; cursor: pointer; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 9px 22px; border-radius: 7px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; cursor: pointer; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ===== STATS BAR ===== */
.stats-bar { background: #fff; border-top: 4px solid var(--gold); border-bottom: 1px solid var(--border); padding: 28px 0; }
.stat-item { text-align: center; padding: 10px 20px; }
.stat-item:not(:last-child) { border-right: 1px solid var(--border); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 5px; }
.stat-num .plus { color: var(--red); font-size: 28px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.stat-icon { width: 36px; height: 36px; background: var(--gold-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 16px; color: var(--navy); }

/* ===== CARDS ===== */
.card-navy-top { background: var(--white); border-radius: 12px; border: 1px solid var(--border); border-top: 4px solid var(--navy); transition: all .25s; }
.card-navy-top:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(28,28,120,.1); }
.card-gold-top { border-top-color: var(--gold); }
.card-red-top  { border-top-color: var(--red); }

/* ===== MEMBER CARDS ===== */
.member-card-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin: 0 auto 14px; display: block; background: var(--bg-light); }
.member-placeholder { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--gold); background: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold); }
.member-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.member-role { font-size: 12px; color: var(--red); font-weight: 500; }
.member-batch { display: inline-block; background: var(--bg-light); color: var(--text-muted); font-size: 11px; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--border); margin-top: 4px; }

/* ===== LIFE MEMBERS TABLE ===== */
.member-table { width: 100%; border-collapse: collapse; }
.member-table th { background: var(--navy); color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 500; text-align: left; }
.member-table th:first-child { border-radius: 8px 0 0 0; }
.member-table th:last-child  { border-radius: 0 8px 0 0; }
.member-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.member-table tr:hover td { background: var(--bg-light); }

/* ===== REPORT ROWS ===== */
.report-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-light); border-radius: 10px; margin-bottom: 10px; border-left: 4px solid var(--red); transition: all .2s; text-decoration: none; }
.report-row:hover { background: var(--red-light); transform: translateX(3px); }
.report-row.latest { border-left-color: var(--navy); background: rgba(28,28,120,.03); }
.pdf-icon-badge { width: 34px; height: 34px; background: var(--red); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.report-row.latest .pdf-icon-badge { background: var(--navy); }
.report-title { font-size: 13.5px; font-weight: 500; color: var(--navy); }
.report-sub { font-size: 11px; color: var(--text-muted); }
.dl-small { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; text-decoration: none; transition: all .2s; white-space: nowrap; }
.dl-small:hover { background: var(--navy); color: #fff; }

/* ===== GALLERY ===== */
.gallery-item { border-radius: 9px; overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; background: var(--navy); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(28,28,120,.55); display: flex; align-items: flex-end; padding: 10px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text { font-size: 11px; color: #fff; font-weight: 500; }

/* ===== SEARCH & FILTER ===== */
.search-box { position: relative; }
.search-box input { width: 100%; padding: 10px 16px 10px 42px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg-light); transition: all .2s; font-family: 'DM Sans', sans-serif; }
.search-box input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(28,28,120,.08); }
.search-box .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }
.filter-select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg-light); cursor: pointer; font-family: 'DM Sans', sans-serif; }
.filter-select:focus { outline: none; border-color: var(--navy); }
.filter-btn { padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; background: #fff; color: var(--text-muted); transition: all .2s; white-space: nowrap; }
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== PAGINATION ===== */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-info { font-size: 13px; color: var(--text-muted); }
.page-btns { display: flex; gap: 4px; align-items: center; }
.page-btn { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border); background: #fff; color: var(--text-dark); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; text-decoration: none; }
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ===== FORMS ===== */
.form-label-c { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 5px; display: block; }
.form-input-c { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13.5px; color: var(--text-dark); background: var(--bg-light); font-family: 'DM Sans', sans-serif; transition: all .2s; margin-bottom: 16px; }
.form-input-c:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(28,28,120,.08); }
.form-input-c.error { border-color: var(--red); }
textarea.form-input-c { resize: vertical; min-height: 90px; }

/* ===== FOOTER ===== */
.main-footer { background: var(--navy-dark); padding: 56px 0 0; }
.footer-logo-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold); object-fit: contain; background: #fff; margin-bottom: 14px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-brand-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 14px; line-height: 1.6; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,.1); transition: all .2s; }
.social-btn:hover { background: var(--gold); color: var(--navy-dark); }
.footer-heading { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { color: var(--gold); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-text { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-contact-text a:hover { color: var(--gold); }
.lang-btn-footer { border: 1px solid rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); transition: all .2s; }
.lang-btn-footer.active { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); font-weight: 500; }
.footer-bottom { background: rgba(0,0,0,.25); margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.07); }
.footer-bottom-text { font-size: 12px; color: rgba(255,255,255,.35); margin: 0; }
.footer-bottom-dev { font-size: 12px; color: rgba(255,215,0,.5); margin: 0; }
.footer-bottom-dev a { color: rgba(255,215,0,.7); text-decoration: none; }

/* ===== SCROLL TO TOP ===== */
#scrollTop { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; background: var(--navy); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; border: 2px solid var(--gold); opacity: 0; transform: translateY(10px); transition: all .3s; z-index: 999; text-decoration: none; }
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--gold); color: var(--navy); }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== ALERT ===== */
.alert-success { background: #E8FFE8; border: 1px solid #27500A; color: #27500A; border-radius: 8px; }
.alert-danger  { background: var(--red-light); border: 1px solid var(--red); color: var(--red); border-radius: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .stat-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 575px) {
  .stat-item { padding: 8px 10px; }
  .stat-num { font-size: 28px; }
  .footer-bottom { text-align: center; }
  .page-title { font-size: 26px; }
}
