/* =========================================================
   ISTE Odisha Section — Frontend Stylesheet
   Engineering / technology theme. Primary: deep navy #00254e,
   accent: ISTE blue #0a5bb5, highlight: #f5a623.
   ========================================================= */

:root {
    --navy: #00254e;
    --navy-light: #06356b;
    --blue: #0a5bb5;
    --blue-dark: #084a94;
    --accent: #f5a623;
    --gray-bg: #f3f6fb;
    --text: #2a2f3a;
    --muted: #6a7382;
    --border: #e3e9f2;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 37, 78, .08);
    --shadow-sm: 0 4px 14px rgba(0, 37, 78, .07);
    --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
}

a { color: var(--blue); text-decoration: none; transition: .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }

.container {
    width: 92%;
    max-width: var(--maxw);
    margin: 0 auto;
}

/* ================= TOP BAR ================= */
.topbar {
    background: var(--navy);
    color: #cfe0f5;
    font-size: 13.5px;
    padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-left span { margin-right: 20px; }
.top-left i { color: var(--accent); margin-right: 6px; }
.top-right a {
    color: #cfe0f5; width: 30px; height: 30px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18); margin-left: 6px;
}
.top-right a:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* ================= HEADER ================= */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 37, 78, .06);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.logo-area { display: flex; align-items: center; gap: 12px;outline:0; }
.logo-box { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-text h1 { font-size: 26px; color: var(--navy); }
.logo-text span { font-size: 13px; color: var(--blue); font-weight: 600; letter-spacing: .5px; }

.mobile-toggle {
    display: none; background: var(--navy); color: #fff; border: 0;
    width: 44px; height: 42px; border-radius: 10px; font-size: 20px; cursor: pointer;
}

/* ================= NAV ================= */
.navbar { display: flex; align-items: center; gap: 4px; }
.nav-link {
    color: var(--navy); font-weight: 600; font-size: 15px;
    padding: 10px 14px; border-radius: 8px; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--gray-bg); }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-btn i { font-size: 11px; margin-left: 4px; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
    box-shadow: var(--shadow); border-radius: 10px; padding: 8px; opacity: 0;
    visibility: hidden; transform: translateY(10px); transition: .22s; z-index: 50;
    border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: 14.5px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--gray-bg); color: var(--blue); }

/* ---- Nested (level 3) flyout submenu ---- */
.dropdown-sub { position: relative; }
.dropdown-sub > a.has-sub {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: 14.5px; font-weight: 500;
}
.dropdown-sub > a.has-sub i { font-size: 10px; color: var(--muted); }
.dropdown-sub > a.has-sub:hover { background: var(--gray-bg); color: var(--blue); }
.dropdown-menu .submenu {
    position: absolute; top: -8px; left: 100%; margin-left: 2px;
    min-width: 220px;
}
.dropdown-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.official-btn {
    background: var(--accent); color: var(--navy); font-weight: 700; font-size: 14px;
    padding: 10px 18px; border-radius: 8px; margin-left: 8px; display: inline-flex;
    align-items: center; gap: 7px;
}
.official-btn:hover { background: var(--navy); color: #fff; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
    padding: 13px 26px; border-radius: 10px; font-size: 15px; cursor: pointer;
    border: 2px solid transparent; transition: .25s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ================= HERO ================= */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--blue-dark) 100%);
    color: #fff; padding: 70px 0 0;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px; opacity: .5;
}
.hero-container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-bottom: 70px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2); color: #d7e6fb; padding: 8px 16px; border-radius: 30px;
    font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
}
.hero-tag i { color: var(--accent); }
.hero-content h2 { color: #fff; font-size: 46px; line-height: 1.15; margin-bottom: 18px; }
.hero-content h2 span { color: var(--accent); }
.hero-content h2 strong { color: #7cc0ff; }
.hero-content p { color: #c7d6ea; font-size: 16.5px; max-width: 540px; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }

.hero-visual { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; }
.engineering-circle {
    width: 280px; height: 280px; border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.circle-inner {
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: spin 40s linear infinite reverse;
}
.circle-inner i { font-size: 56px; color: var(--accent); margin-bottom: 6px; }
.circle-inner span { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: 3px; }

.floating-card {
    position: absolute; background: #fff; color: var(--navy); border-radius: 12px;
    padding: 12px 16px; display: flex; align-items: center; gap: 11px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 13px;
}
.floating-card i { font-size: 22px; color: var(--blue); }
.floating-card strong { display: block; font-size: 14px; }
.floating-card small { color: var(--muted); }
.card-one { top: 24px; left: -10px; animation: float 4s ease-in-out infinite; }
.card-two { bottom: 30px; right: -10px; animation: float 4s ease-in-out infinite 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-bottom { position: relative; }
.engineering-line { display: flex; gap: 8px; padding-bottom: 0; }
.engineering-line span { height: 6px; flex: 1; background: var(--accent); opacity: .85; }
.engineering-line span:nth-child(2) { background: var(--blue); }
.engineering-line span:nth-child(3) { background: #fff; opacity: .4; }
.engineering-line span:nth-child(4) { background: var(--accent); }

/* ================= QUICK LINKS ================= */
.quick-section { margin-top: -42px; position: relative; z-index: 5; margin-bottom: 50px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quick-card {
    background: #fff; border-radius: var(--radius); padding: 24px; display: flex;
    align-items: center; gap: 16px; box-shadow: var(--shadow); color: var(--navy);
    border: 1px solid var(--border);
}
.quick-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,37,78,.14); }
.quick-icon {
    width: 54px; height: 54px; border-radius: 12px; background: var(--gray-bg);
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--blue); flex-shrink: 0;
}
.quick-card h3 { font-size: 17px; }
.quick-card p { color: var(--muted); font-size: 13.5px; }
.quick-card .arrow { margin-left: auto; color: var(--blue); }

/* ================= SECTIONS ================= */
.section { padding: 72px 0; }
.section-label {
    display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-heading h2, .center-heading h2 { font-size: 34px; }
.section-heading h2 span, .center-heading h2 span { color: var(--blue); }
.center-heading { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.center-heading p { color: var(--muted); margin-top: 12px; }
.view-all { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* ================= ABOUT ================= */
.about-section { background: var(--gray-bg); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.image-frame {
    position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
}
.circuit-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}
.about-icon { font-size: 90px; color: rgba(255,255,255,.9); position: relative; }
.about-label {
    position: absolute; bottom: 20px; left: 20px; background: #fff; border-radius: 12px;
    padding: 12px 20px; box-shadow: var(--shadow);
}
.about-label strong { display: block; color: var(--navy); font-size: 20px; }
.about-label span { color: var(--blue); font-size: 13px; font-weight: 600; }
.about-content h2 { font-size: 34px; margin-bottom: 18px; }
.about-content h2 span { color: var(--blue); }
.about-content p { color: var(--muted); margin-bottom: 14px; }
.about-content p strong { color: var(--navy); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.about-points div { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-points i { color: #2ba84a; font-size: 18px; }

/* ================= NOTICE ================= */
.notice-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.notice-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; display: flex; gap: 20px; box-shadow: var(--shadow-sm);
}
.notice-card.featured { border-left: 5px solid var(--accent); }
.notice-date {
    flex-shrink: 0; width: 72px; height: 86px; background: var(--navy); color: #fff;
    border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.notice-date strong { font-size: 30px; line-height: 1; }
.notice-date span { font-size: 11px; text-align: center; margin-top: 4px; color: #bcd3ee; }
.notice-badge { display: inline-block; background: #ffeccb; color: #a56a00; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .5px; }
.notice-content h3 { font-size: 19px; margin: 10px 0 8px; }
.notice-content p { color: var(--muted); font-size: 14.5px; }
.deadline { margin: 12px 0; color: #c0392b; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.read-more { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }

.notice-side { display: flex; flex-direction: column; gap: 18px; }
.small-notice { background: var(--gray-bg); border-radius: 12px; padding: 18px 20px; }
.small-date { display: inline-block; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.small-notice h3 { font-size: 16px; margin: 10px 0 6px; }
.small-notice p { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.small-notice a { font-weight: 600; font-size: 13.5px; }

/* ================= COMMITTEE ================= */
.committee-grid { display: flex; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch;flex-direction:row; }
.person-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.person-image { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-bg); }
.person-image img { width: 400px; height: 100%; object-fit: cover; object-position: top center; }
.person-info { padding: 22px; }
.person-info span { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; }
.person-info h3 { font-size: 18px; margin: 6px 0 4px; }
.person-info p { color: var(--muted); margin-bottom: 10px; }
.committee-info { display: flex; flex-direction: column; gap: 20px; }
.info-box { background: var(--gray-bg); border-radius: var(--radius); padding: 26px; flex: 1; }
.info-box i { font-size: 30px; color: var(--blue); margin-bottom: 12px; }
.info-box h3 { font-size: 20px; margin-bottom: 8px; }
.info-box p { color: var(--muted); }

/* committee page cards */
.committee-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cmember-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 250px 1fr; overflow: hidden;
}
.cmember-photo { background: var(--gray-bg); }
.cmember-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.cmember-body { padding: 20px; }
.cmember-body .desig { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.cmember-body h3 { font-size: 20px; margin: 4px 0 8px; }
.cmember-body p { color: var(--muted); font-size: 14px; margin-bottom: 3px; }
.cmember-body a { font-weight: 600; }
.committee-cat-title { font-size: 24px; color: var(--navy); margin: 40px 0 22px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }

/* ================= MEMBERSHIP ================= */
.membership-box {
    background: linear-gradient(135deg, var(--navy), var(--blue-dark));
    border-radius: 22px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center; color: #fff; box-shadow: var(--shadow);
}
.membership-box .section-label { color: var(--accent); }
.membership-content h2 { color: #fff; font-size: 32px; }
.membership-content h2 span { color: var(--accent); }
.membership-content p { color: #c7d6ea; margin-top: 12px; }
.membership-buttons { display: flex; flex-direction: column; gap: 16px; }
.membership-btn {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
    padding: 18px 22px; display: flex; align-items: center; gap: 16px; color: #fff;
}
.membership-btn:hover { background: #fff; color: var(--navy); }
.membership-btn > i:first-child { font-size: 26px; color: var(--accent); }
.membership-btn:hover > i:first-child { color: var(--blue); }
.membership-btn span { flex: 1; font-weight: 700; display: flex; flex-direction: column; }
.membership-btn small { font-weight: 500; opacity: .8; font-size: 12px; }

/* ================= CHAPTERS ================= */
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.chapter-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); transition: .25s;
}
.chapter-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.chapter-icon {
    width: 60px; height: 60px; border-radius: 14px; background: var(--gray-bg); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.chapter-card h3 { font-size: 20px; margin-bottom: 10px; }
.chapter-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.chapter-card a { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }

/* ================= GALLERY ================= */
.gallery-section { background: var(--gray-bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-item:hover img { transform: scale(1.08); }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-content h2 { font-size: 32px; margin-bottom: 14px; }
.contact-content h2 span { color: var(--blue); }
.contact-content p { color: var(--muted); margin-bottom: 26px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.contact-icon {
    width: 50px; height: 50px; border-radius: 12px; background: var(--gray-bg); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item small { color: var(--muted); font-size: 13px; }
.contact-item strong { display: block; color: var(--navy); }

.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.contact-card-top { background: var(--navy); color: #fff; padding: 28px; text-align: center; }
.contact-card-top i { font-size: 34px; color: var(--accent); margin-bottom: 10px; }
.contact-card-top h3 { color: #fff; font-size: 22px; }
.contact-card-top p { color: #bcd3ee; font-size: 14px; margin-top: 6px; }
.contact-card form { padding: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: 14.5px; transition: .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,91,181,.12); }
.submit-btn { width: 100%; justify-content: center; }

/* ================= PAGE BANNER (inner pages) ================= */
.page-banner {
    background: linear-gradient(135deg, var(--navy), var(--blue-dark));
    color: #fff; padding: 50px 0; position: relative; overflow: hidden;
}
.page-banner::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px);
    background-size: 26px 26px; opacity: .5;
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: 36px; }
.page-banner .crumb { color: #bcd3ee; margin-top: 8px; font-size: 14px; }
.page-banner .crumb a { color: var(--accent); }

/* ================= CMS / content pages ================= */
.content-section { padding: 60px 0; }
.content-body { max-width: 900px; margin: 0 auto; }
.content-body p { color: var(--text); margin-bottom: 16px; }
.content-body ul, .content-body ol { margin: 0 0 16px 22px; }
.content-body li { margin-bottom: 8px; }
.content-body h2, .content-body h3 { margin: 24px 0 12px; }
.content-body img { border-radius: 10px; margin: 16px 0; }

/* notice detail */
.notice-detail {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 36px; max-width: 900px; margin: 0 auto;
}
.notice-detail .meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 14px; margin: 10px 0 20px; flex-wrap: wrap; }
.notice-detail .meta .badge-tag { background: #ffeccb; color: #a56a00; font-weight: 700; padding: 3px 12px; border-radius: 20px; font-size: 12px; }

/* notice list rows */
.notice-list { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.notice-row {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 24px 26px;
}
.notice-row h3 { font-size: 20px; margin-bottom: 8px; }
.notice-row .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.notice-row p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }

/* ================= FOOTER ================= */
.footer { background: var(--navy); color: #c7d6ea; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-box { width: 50px; height: 50px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo strong { display: block; color: #fff; font-size: 20px; }
.footer-logo span { color: var(--accent); font-size: 13px; font-weight: 600; }
.footer-about p { color: #9fb4ce; font-size: 14.5px; max-width: 360px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; color: #cfe0f5;
}
.social-links a:hover { background: var(--accent); color: var(--navy); }
.footer-links h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-links a { display: block; color: #9fb4ce; padding: 6px 0; font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #9fb4ce; }
.footer-bottom i { color: #e74c3c; }

/* ================= BACK TO TOP ================= */
.back-top {
    position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue); color: #fff; border: 0; font-size: 18px; cursor: pointer;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; z-index: 900;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--navy); }

/* ================= ALERTS ================= */
.flash-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.flash-success { background: #e7f7ec; color: #1d7a3a; border: 1px solid #bce7cb; }
.flash-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.field-error { color: #c0392b; font-size: 13px; margin-top: 5px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .hero-container, .about-grid, .committee-grid, .contact-grid,
    .membership-box, .notice-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 300px; margin-top: 20px; }
    .quick-grid, .chapter-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .committee-page-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h2 { font-size: 36px; }
    .committee-grid{
        display: grid;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .navbar {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff;
        flex-direction: column; align-items: stretch; padding: 70px 16px 20px; gap: 2px;
        box-shadow: -8px 0 30px rgba(0,0,0,.15); transition: right .3s; z-index: 1100; overflow-y: auto;
    }
    .navbar.open { right: 0; }
    .nav-link { width: 100%; }
    .nav-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 12px; display: none; }
    .nav-dropdown.open > .dropdown-menu { display: block; }
    /* nested submenu becomes an inline accordion on mobile */
    .dropdown-menu .submenu { position: static; left: auto; margin: 0 0 0 10px; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border-left: 2px solid var(--border); border-radius: 0; }
    .dropdown-sub.open > .submenu { display: block; }
    .dropdown-sub > a.has-sub i { transition: transform .2s; }
    .dropdown-sub.open > a.has-sub i { transform: rotate(90deg); }
    .official-btn { margin: 8px 0 0; justify-content: center; }
    .section { padding: 50px 0; }
    .hero-content h2 { font-size: 30px; }
    .section-heading h2, .center-heading h2 { font-size: 27px; }
    .cmember-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .membership-box { padding: 30px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .about-points { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 26px; }
    .logo-text h1 { font-size: 21px; }
}

/* ================= HOMEPAGE SLIDER / BANNER ================= */
.iste-slider { width: 100%; background: var(--navy); }
.iste-slider-track {
    position: relative;
    width: 100%;
    height: clamp(280px, 46vw, 560px);
    overflow: hidden;
}
.iste-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}
.iste-slide.active { opacity: 1; visibility: visible; }
.iste-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.iste-slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    
}
.iste-slide-caption h2 {
    color: #fff;
    font-size: clamp(24px, 3.6vw, 44px);
    line-height: 1.15;
    max-width: 640px;
    margin-bottom: 12px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.iste-slide-caption p {
    color: #e7effb;
    font-size: clamp(14px, 1.6vw, 18px);
    max-width: 560px;
    margin-bottom: 20px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

/* Controls */
.iste-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--navy);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: .2s;
}
.iste-slider-btn:hover { background: var(--accent); color: var(--navy); }
.iste-slider-btn.prev { left: 18px; }
.iste-slider-btn.next { right: 18px; }

.iste-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
    z-index: 5;
}
.iste-slider-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: .2s;
}
.iste-slider-dots button.active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }

@media (max-width: 768px) {
    .iste-slider-btn { width: 38px; height: 38px; font-size: 14px; }
    .iste-slide-caption { background: linear-gradient(180deg, rgba(0, 37, 78, .25) 0%, rgba(0, 37, 78, .7) 100%); align-items: flex-end; padding-bottom: 44px; }
}
