:root {
    --council-primary: #0d47a1;
    --council-primary-dark: #093170;
    --council-accent: #ff5722;
    --council-bg: #f5f7fb;
    --council-text: #1f2937;
    --council-muted: #6b7280;
    --radius-md: 14px;
    --radius-sm: 10px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
}

html,
body {
    font-family: "Roboto", sans-serif;
    background: var(--council-bg);
    color: var(--council-text);
    overflow-x: hidden;
}

.main-content {
    padding-top: 7.2rem;
}

.council-navbar {
    background: linear-gradient(120deg, var(--council-primary), #1459c2, var(--council-primary-dark));
    background-size: 220% 220%;
    animation: navbarGradient 14s ease infinite;
}

.council-navbar.scrolled {
    box-shadow: 0 10px 30px rgba(2, 22, 52, 0.35) !important;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.header-council-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.98);
    padding: 2px;
    box-shadow: 0 4px 14px rgba(2, 22, 52, 0.2);
}

.council-top-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 22, 52, 0.35);
    backdrop-filter: blur(4px);
    font-size: 0.76rem;
    color: #e8f0ff;
    padding: 0.35rem 0;
}

.council-top-strip strong {
    color: #fff;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--council-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.header-highlight-links {
    margin-left: auto;
    margin-right: 0.85rem;
    gap: 0.5rem;
    align-items: center;
}

.header-highlight-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-highlight-link:hover,
.header-highlight-link.active {
    transform: translateY(-1px);
    opacity: 0.96;
}

.header-highlight-about {
    background: linear-gradient(135deg, #2f80ed, #185ec0);
    box-shadow: 0 8px 18px rgba(31, 113, 220, 0.3);
}

.header-highlight-committee {
    background: linear-gradient(135deg, #ff7f50, #ff5722);
    box-shadow: 0 8px 18px rgba(255, 87, 34, 0.3);
}

.header-highlight-admin {
    background: linear-gradient(135deg, #0b2e63, #093170);
    box-shadow: 0 8px 18px rgba(2, 22, 52, 0.34);
}

.header-main-nav {
    width: 100%;
    margin-top: 0.35rem;
}

.nav-main-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.2rem;
}

.nav-main-links .nav-link {
    border-radius: 9px;
    padding: 0.48rem 0.72rem;
    white-space: nowrap;
}

.nav-main-links .nav-link:hover,
.nav-main-links .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-highlight-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-highlight-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.68rem;
}

.hero-section {
    background: linear-gradient(115deg, rgba(13, 71, 161, 0.95), rgba(9, 49, 112, 0.9));
    color: #fff;
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 3.5rem);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.section-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid rgba(13, 71, 161, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.inspiration-item {
    text-align: center;
}

.inspiration-item img {
    width: 130px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid var(--council-primary);
    transition: transform 0.25s ease;
}

.inspiration-item:hover img {
    transform: scale(1.05);
}

.quote-showcase {
    background: linear-gradient(155deg, #ffffff, #f5f9ff 45%, #eef5ff);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.quote-rotator-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(13, 71, 161, 0.15);
    background: linear-gradient(140deg, rgba(13, 71, 161, 0.08), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    padding: clamp(0.95rem, 2vw, 1.25rem);
    overflow: hidden;
}

.quote-rotator-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.14), transparent 68%);
}

.quote-symbol {
    position: absolute;
    left: 0.8rem;
    top: 0.3rem;
    font-size: 2.8rem;
    line-height: 1;
    color: rgba(13, 71, 161, 0.2);
    font-weight: 700;
}

.quote-text {
    margin-left: 1.55rem;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.6;
    color: #0f172a;
    font-weight: 600;
}

.quote-author {
    margin-left: 1.55rem;
    color: #0d47a1;
    font-weight: 700;
    font-size: 0.92rem;
}

.quote-explanation {
    margin-left: 1.55rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quote-progress {
    margin-left: 1.55rem;
    width: min(320px, 92%);
    height: 5px;
    border-radius: 999px;
    background: rgba(13, 71, 161, 0.13);
    overflow: hidden;
}

.quote-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1459c2, #ff5722);
    animation: quoteProgressRun 10s linear infinite;
}

.quote-rotator-card.is-exiting {
    animation: quoteCardExit 0.24s ease forwards;
}

.quote-rotator-card.is-entering {
    animation: quoteCardEnter 0.35s ease forwards;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
}

.gallery-grid a {
    display: inline-block;
    margin-bottom: 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-link-card {
    border-left: 5px solid var(--council-accent);
}

.update-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.update-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
}

.update-card-body {
    padding: 0.9rem;
}

.update-card-date {
    color: #0d47a1;
    font-weight: 600;
}

.council-activities-section {
    background: linear-gradient(160deg, #ffffff, #f6faff);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.activity-feature-card {
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.activity-feature-primary {
    border-color: rgba(255, 87, 34, 0.42);
}

.activity-feature-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
}

.activity-feature-body {
    padding: 0.95rem;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-us-panel {
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.committee-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.committee-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(228, 239, 255, 0.88));
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
}

.committee-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.committee-card-body {
    padding: 0.95rem;
}

.committee-designation {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b2e63;
    background: rgba(13, 71, 161, 0.1);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.committee-link {
    color: #0d47a1;
    text-decoration: none;
}

.committee-link:hover {
    text-decoration: underline;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.contact-label {
    color: #0d47a1;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-value {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: #0f172a;
}

.contact-link {
    color: #0d47a1;
    text-decoration: none;
    word-break: break-word;
}

.contact-link:hover {
    text-decoration: underline;
}

.form-card {
    max-width: 950px;
    margin-inline: auto;
}

.book-cover-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.objective-accordion .accordion-item {
    border: 1px solid rgba(13, 71, 161, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.objective-accordion .accordion-button {
    font-weight: 700;
    color: var(--council-primary-dark);
    background: rgba(13, 71, 161, 0.06);
}

.objective-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(90deg, var(--council-primary), var(--council-primary-dark));
}

.objective-accordion .accordion-body {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
}

.professional-form-card {
    border: 1px solid rgba(13, 71, 161, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.form-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.15), rgba(255, 87, 34, 0.12));
    color: var(--council-primary-dark);
    border: 1px solid rgba(13, 71, 161, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
}

.form-section-title {
    margin: 0.2rem 0 0;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(13, 71, 161, 0.14);
    font-size: 1.02rem;
    color: var(--council-primary-dark);
    font-weight: 700;
}

.professional-form .form-label {
    color: #0b2e63;
    font-weight: 600;
}

.professional-form .form-control,
.professional-form .form-select,
.professional-form textarea {
    border: 1px solid rgba(13, 71, 161, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(2, 22, 52, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.professional-form .form-control:focus,
.professional-form .form-select:focus,
.professional-form textarea:focus {
    border-color: var(--council-accent);
    box-shadow: 0 0 0 0.18rem rgba(255, 87, 34, 0.18);
    transform: translateY(-1px);
}

.professional-form .btn-primary {
    border: none;
    background: linear-gradient(90deg, var(--council-primary), #1459c2);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.professional-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.3);
}

.form-animate-item {
    opacity: 0;
    transform: translateY(14px);
    animation: fieldFadeUp 0.45s ease forwards;
}

@keyframes fieldFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swal2-popup.council-alert-popup {
    border-radius: 18px !important;
    border: 1px solid rgba(13, 71, 161, 0.2);
    box-shadow: 0 18px 40px rgba(2, 22, 52, 0.25) !important;
}

.council-alert-show {
    animation: councilAlertEnter 0.28s ease;
}

.council-alert-hide {
    animation: councilAlertExit 0.2s ease;
}

@keyframes councilAlertEnter {
    0% { opacity: 0; transform: translateY(18px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes councilAlertExit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.fee-pill {
    background: rgba(13, 71, 161, 0.12);
    color: var(--council-primary-dark);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
}

.signature-wrap {
    border: 1px dashed rgba(13, 71, 161, 0.45);
    border-radius: var(--radius-sm);
    background: #ffffff;
    min-height: 190px;
    overflow: hidden;
}

.signature-canvas {
    width: 100%;
    height: 190px;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.footer {
    background: linear-gradient(135deg, #08285b, #0b377e, #051a3d);
    background-size: 220% 220%;
    animation: navbarGradient 16s ease infinite;
    color: #dbeafe;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-link {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-contact-panel {
    border: 1px solid rgba(219, 234, 254, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border-radius: 14px;
    padding: 0.72rem 0.85rem;
    box-shadow: 0 10px 24px rgba(3, 16, 40, 0.28);
}

.footer-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.footer-contact-chip {
    text-decoration: none;
    color: #f3f8ff;
    border: 1px solid rgba(219, 234, 254, 0.38);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-contact-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
}

.footer-nav-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    padding-bottom: 0.15rem;
}

.footer-nav-full {
    width: 100%;
}

.footer-nav-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e4eeff;
    border: 1px solid rgba(219, 234, 254, 0.32);
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer-nav-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.footer-muted {
    color: #d0dcf3;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, 0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-icon {
    width: clamp(104px, 12vw, 132px);
    height: clamp(104px, 12vw, 132px);
    animation: chakraRotateClockwise 1.1s linear infinite;
    filter: drop-shadow(0 8px 18px rgba(13, 71, 161, 0.28));
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes navbarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes chakraRotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* <360dp */
@media (max-width: 359px) {
    .main-content {
        padding-top: 5rem;
    }

    .hero-section {
        border-radius: var(--radius-sm);
        padding: 1.1rem;
    }

    .hero-section .display-6 {
        font-size: 1.5rem;
    }

    .section-card {
        padding: 0.9rem;
    }

    .inspiration-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .inspiration-item img {
        width: 110px;
    }

    .signature-wrap,
    .signature-canvas {
        min-height: 160px;
        height: 160px;
    }
}

/* 360-480dp */
@media (min-width: 360px) and (max-width: 480px) {
    .main-content {
        padding-top: 5rem;
    }

    .hero-section .display-6 {
        font-size: 1.7rem;
    }

    .section-card {
        padding: 1rem;
    }
}

/* 480-720dp */
@media (max-width: 720px) {
    .main-content {
        padding-top: 5.4rem;
    }

    .council-top-strip {
        font-size: 0.68rem;
    }

    .gallery-grid {
        column-count: 2;
    }

    .inspiration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-us-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .contact-info-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .quote-text,
    .quote-author,
    .quote-explanation,
    .quote-progress {
        margin-left: 1.25rem;
    }
}

/* <480dp */
@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .header-council-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .brand-subtitle {
        display: none;
    }

    .quote-symbol {
        left: 0.55rem;
        top: 0.2rem;
        font-size: 2.2rem;
    }

    .quote-text,
    .quote-author,
    .quote-explanation,
    .quote-progress {
        margin-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .header-main-nav {
        margin-top: 0.6rem;
    }

    .nav-main-links {
        justify-content: flex-start;
    }

    .nav-main-links .nav-link {
        padding-inline: 0.25rem;
    }
}

@media (min-width: 992px) {
    .header-main-nav {
        display: flex !important;
        flex-basis: 100%;
        margin-top: 0.35rem;
    }

    .nav-main-links {
        justify-content: center;
    }
}

@keyframes quoteProgressRun {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes quoteCardExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes quoteCardEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
