/* ===============================================
   AWIMSA - Consolidated Styles
   =============================================== */

/* ===== CSS Variables ===== */
:root {
    --aw-yellow: #ffd300;
    --aw-grey-1: #d9d9d9;
    --aw-grey-2: #e2e2e2;
    --aw-text: #111;
    --aw-bg: #fff;
    --aw-card-bg: #fff;
    --aw-border: rgba(0, 0, 0, .06);
}

/* Dark mode variables */
[data-bs-theme="dark"] {
    --aw-yellow: #ffd300;
    --aw-grey-1: #2a2a2a;
    --aw-grey-2: #1a1a1a;
    --aw-text: #e0e0e0;
    --aw-bg: #121212;
    --aw-card-bg: #1e1e1e;
    --aw-border: rgba(255, 255, 255, .1);
}

[data-bs-theme="dark"] body {
    background-color: #121212;
    color: #e0e0e0;
}

/* Dark mode toggle button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--aw-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--aw-yellow);
    border-color: var(--aw-yellow);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--aw-text);
}

/* Mobile theme toggle in navbar */
.mobile-theme-toggle {
    display: none;
    border-color: #111;
}

.mobile-theme-toggle i {
    color: #111;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #111;
}

@media (max-width: 767.98px) {
    /* Hide header theme toggle on mobile */
    .topbar .theme-toggle {
        display: none;
    }
    
    /* Show navbar theme toggle on mobile */
    .mobile-theme-toggle {
        display: flex;
    }
    
    /* Position navbar elements */
    .aw-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .navbar-toggler {
        order: 1;
    }
    
    .mobile-theme-toggle {
        order: 2;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
    }
}

/* ===== Main Container ===== */
.aw-container {
    width: 80%;
    max-width: 1200px;
}

@media (max-width: 991.98px) {
    .aw-container {
        width: 92%;
    }
}

/* ===== Top Header (White) ===== */
.topbar {
    background: var(--aw-bg);
    border-bottom: 1px solid var(--aw-border);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
}

.brand-img {
    height: 56px;
    width: auto;
    display: block;
}

/* Socials on far right */
.socials a {
    color: var(--aw-text);
    text-decoration: none;
}

/* ===== Yellow Navigation ===== */
.aw-nav {
    background: var(--aw-yellow);
}

.aw-nav .nav-link {
    color: #111;
    font-weight: 800;
    padding: .55rem 1rem;
    border-radius: 999px;
}

.aw-nav .nav-link.active {
    background: #fff;
    color: #111;
}

.aw-nav .nav-link:hover {
    background: rgba(255, 255, 255, .25);
}

/* Bootstrap Navbar Toggler Customization */
.navbar-toggler {
    border: 2px solid #111;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure navbar is visible on desktop */
@media (min-width: 768px) {
    .aw-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 767.98px) {
    .aw-nav .navbar-collapse {
        padding: 15px 0;
    }
    
    .aw-nav .navbar-collapse.collapsing,
    .aw-nav .navbar-collapse.show {
        background: var(--aw-yellow);
    }
    
    .aw-nav .nav {
        flex-direction: column;
        gap: 0 !important;
    }
    
    .aw-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .aw-nav .nav-link {
        width: 100%;
        border-radius: 0;
        padding: 12px 20px;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero img {
    width: 100%;
    height: clamp(320px, 44vw, 520px);
    object-fit: cover;
    display: block;
}

/* Hero overlay - right side gradient (for index.html) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .10) 0%,
        rgba(0, 0, 0, .25) 45%,
        rgba(0, 0, 0, .60) 78%,
        rgba(0, 0, 0, .70) 100%);
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    margin-left: auto;
    text-align: right;
    color: #fff;
}

.hero h1 {
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.2px;
    font-size: clamp(30px, 3.3vw, 56px);
    margin: 0 0 14px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero p {
    margin: 0;
    font-weight: 800;
    font-size: clamp(14px, 1.15vw, 18px);
    opacity: .98;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

@media (max-width: 991.98px) {
    .hero-overlay {
        background: rgba(0, 0, 0, .55);
    }
    .hero-copy {
        margin-left: 0;
        text-align: left;
    }
}

/* ===== Content Block ===== */
.content-block {
    padding: 2.75rem 0;
}

.lead-strong {
    font-weight: 900;
}

/* Yellow frame - LEFT and UNDER photo only */
.photo-stack {
    position: relative;
    padding-left: 18px;
    padding-bottom: 18px;
}

.photo-stack::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    background: var(--aw-yellow);
    border-radius: 6px;
    z-index: 0;
}

.photo-card {
    position: relative;
    z-index: 1;
    background: var(--aw-card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-aw {
    background: var(--aw-yellow);
    border: 3px solid var(--aw-yellow);
    font-weight: 900;
    border-radius: 999px;
    padding: .7rem 1.7rem;
    color: #111;
}

.btn-aw:hover {
    background: var(--aw-grey-1);
    border: 3px solid var(--aw-yellow);
    font-weight: 900;
    border-radius: 999px;
    padding: .7rem 1.7rem;
    color: #111;
}

[data-bs-theme="dark"] .btn-aw:hover {
    color: #fff;
}

/* ===== Statement Band ===== */
.statement {
    background: var(--aw-grey-1);
    color: var(--aw-text);
}

.statement .big {
    font-weight: 900;
    font-size: clamp(18px, 1.7vw, 28px);
    line-height: 1.25;
}

.statement .big span {
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: var(--aw-grey-2);
    padding: 2.25rem 0;
    color: var(--aw-text);
}

.footer h6,
.footer h5 {
    font-weight: 900;
    margin-bottom: .75rem;
}

.bottom-bar {
    background: var(--aw-yellow);
    color: #111;
    font-weight: 800;
    font-size: 14px;
    padding: .8rem 0;
}

[data-bs-theme="dark"] .footer a {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .footer a.text-dark {
    color: #e0e0e0 !important;
}

/* ===== Who We Are Page Specific ===== */
.section-title {
    font-weight: 900;
    letter-spacing: -.2px;
}

.body-copy p {
    color: var(--aw-text);
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

[data-bs-theme="dark"] .body-copy p {
    color: #d0d0d0;
}

.band-grey {
    background: var(--aw-grey-1);
}

.objective-title {
    font-weight: 900;
    font-size: clamp(18px, 2vw, 28px);
    margin-bottom: .75rem;
}

.objective-list {
    margin: 0;
    padding-left: 1.1rem;
}

.objective-list li {
    margin-bottom: .9rem;
    line-height: 1.35;
}

.vision-wrap {
    padding: 2.25rem 0;
}

.vision-text {
    font-weight: 900;
    font-size: clamp(20px, 2.2vw, 34px);
    line-height: 1.15;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-soft {
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

/* ===== Our Founder Page Specific ===== */
.founder-row {
    align-items: stretch;
}

@media (min-width: 992px) {
    .founder-row {
        min-height: 560px;
    }
}

/* Yellow L-shape behind image - TOP + LEFT only */
.founder-frame {
    position: relative;
    height: 100%;
    padding-top: 16px;
    padding-left: 16px;
}

.founder-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    background: var(--aw-yellow);
    border-radius: 26px;
    z-index: 0;
}

.founder-card {
    position: relative;
    z-index: 1;
    height: 100%;
    background: var(--aw-card-bg);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.founder-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.founder-caption {
    font-weight: 900;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.25;
}

.founder-caption small {
    display: block;
    font-weight: 800;
}

.founder-copy {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-copy p {
    color: var(--aw-text);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

[data-bs-theme="dark"] .founder-copy p {
    color: #d0d0d0;
}

/* ===== Our Partners Page Specific ===== */
.donation-box h5 {
    font-weight: 900;
    margin-bottom: 1rem;
}

.donation-box {
    padding: 1.5rem;
}

.donation-box .line {
    margin-bottom: .25rem;
    line-height: 1.35;
}

.donation-box .note {
    margin-top: .9rem;
    font-size: .95rem;
}

.partner-row {
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--aw-border);
}

.partner-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
}

.partner-copy p {
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--aw-text);
}

[data-bs-theme="dark"] .partner-copy p {
    color: #d0d0d0;
}

.btn-visit {
    background: var(--aw-yellow);
    border: 0;
    font-weight: 900;
    border-radius: 999px;
    padding: .7rem 1.6rem;
    color: #111;
    white-space: nowrap;
}
.btn-visit:hover {
    background: var(--aw-grey-1);
    border: 3px solid var(--aw-yellow);
    font-weight: 900;
    border-radius: 999px;
    padding: .7rem 1.7rem;
    color: #111;
}

[data-bs-theme="dark"] .btn-visit:hover {
    color: #fff;
}

/* ===== Latest News Page Specific ===== */
.news-card {
    border: 2px solid var(--aw-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--aw-card-bg);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-body {
    padding: 1rem;
    flex-grow: 1;
}

.news-title {
    font-weight: 900;
}

.news-date {
    font-size: .85rem;
    border-top: 1px solid var(--aw-border);
    padding: .6rem 1rem;
}

/* Gallery carousel */
.gallery-shell {
    max-width: 760px;
    position: relative;
    overflow: visible;
}

.gallery-img {
    height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

.carousel-item {
    transition: transform 0.9s ease-in-out;
}

.aw-prev,
.aw-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
    border: 0;
    opacity: 1;
}

.aw-prev {
    left: -70px;
}

.aw-next {
    right: -70px;
}

.aw-prev i,
.aw-next i {
    font-size: 22px;
    color: #111;
}

@media (max-width: 768px) {
    .gallery-shell {
        max-width: 100%;
    }
    .aw-prev {
        left: 10px;
    }
    .aw-next {
        right: 10px;
    }
    .gallery-img {
        height: 280px;
    }
}

/* Video cards */
.video-card {
    position: relative;
}

.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
}

.video-title {
    font-weight: 800;
    margin-top: .75rem;
    text-align: center;
}

/* ===== Join Us Page Specific ===== */
.content p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.membership-list {
    font-weight: 800;
}

.full-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

/* ===== Contact Us Page Specific ===== */
.contact-section {
    padding: 3.5rem 0;
}

.block-title {
    font-weight: 900;
}

.info-row {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 2px solid rgba(0, 0, 0, .6);
}

.info-icon {
    font-size: 28px;
}

.info-text {
    font-size: 18px;
}

.follow-wrap {
    text-align: center;
    margin-top: 3rem;
}

.follow-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 1rem;
}

.follow-icons i {
    font-size: 56px;
}

/* Contact form */
.aw-input,
.aw-textarea {
    background: #d8d8d8;
    border: none;
    border-radius: 0;
    padding: 14px;
    font-weight: 700;
    color: #111;
}

[data-bs-theme="dark"] .aw-input,
[data-bs-theme="dark"] .aw-textarea {
    background: #2a2a2a;
    color: #e0e0e0;
}

.aw-textarea {
    height: 360px;
    resize: none;
}

@media (max-width: 768px) {
    .aw-textarea {
        height: 260px;
    }
}

.required-note {
    font-size: 12px;
}

/* ===== Additional Dark Mode Refinements ===== */
[data-bs-theme="dark"] .info-row {
    border-bottom: 2px solid rgba(255, 255, 255, .2);
}

[data-bs-theme="dark"] .content p {
    color: #d0d0d0;
}

[data-bs-theme="dark"] .brand-img {
    filter: brightness(0.9);
}

/* Smooth transitions for theme changes */
body,
.topbar,
.footer,
.news-card,
.photo-card,
.founder-card,
.aw-input,
.aw-textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

