:root {
    --primary-color: #3a8ba3;
    --secondary-color: #c9a961;
    --dark-blue: #0d1b2a;
    --dark-bg: #1a2332;
    --dark-card: #212d3f;
    --dark-elevated: #2a3a4f;
    --dark-lighter: #344152;
    --light-blue: #e8f4f8;
    --gold: #e5c158;
    --gold-deep: #c9a961;
    --cream: #faf8f3;
    --text-dark: #e8eaed;
    --text-light: #b8bdc4;
    --text-muted: #8a9099;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a2a3a 0%, #22364a 100%);
    border-bottom: 2px solid rgba(201, 169, 97, 0.55);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: rgba(255, 253, 247, 0.92);
    border-radius: 10px;
    padding: 5px 8px;
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.25);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    font-size: 15.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 6px 2px;
    letter-spacing: 0.2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 55% at 50% 32%, rgba(58, 139, 163, 0.15) 0%, rgba(58, 139, 163, 0) 70%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(229, 193, 88, 0.12) 0%, rgba(229, 193, 88, 0) 70%),
        linear-gradient(180deg, #1a2a3f 0%, #1a2332 100%);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(15, 20, 25, 0.55) 0%, rgba(15, 20, 25, 0.45) 100%),
        url('../images/beit-midrash.jpg') center/cover no-repeat;
    z-index: 0;
    filter: grayscale(20%) brightness(0.75);
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0) 0%, var(--dark-bg) 100%);
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-dark);
    padding: 40px 20px;
}

.hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(229, 193, 88, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-title-network {
    display: block;
    overflow: hidden;
    font-size: 0.48em;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1px;
    opacity: 0.95;
}

.hero-title-network span {
    display: inline-block;
    animation: wordReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0s;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line span {
    display: inline-block;
    animation: wordReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-line:nth-child(2) span { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) span { animation-delay: 0.4s; }

@keyframes wordReveal {
    from {
        transform: translateY(110%) scale(0.9) rotate(3deg);
        opacity: 0;
        filter: blur(6px);
    }
    to {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 2px 20px rgba(229, 193, 88, 0.3);
    }
    100% {
        text-shadow: 0 4px 30px rgba(229, 193, 88, 0.5), 0 0 40px rgba(229, 193, 88, 0.2);
    }
}

.hero-title-accent {
    display: block;
    font-size: 0.58em;
    font-weight: 400;
    color: var(--gold);
    margin-top: 6px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.9s ease 0.7s both;
    opacity: 0.9;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto;
    animation: fadeInUp 0.8s ease 0.75s both;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-divider::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
    animation: fadeInUp 0.9s ease 0.9s both;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--white);
    box-shadow: 0 6px 18px rgba(168, 133, 63, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(168, 133, 63, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 8px 0;
    font-weight: 600;
    border: none;
}

.btn-text:hover {
    color: var(--secondary-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    opacity: 0.6;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 16px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 70px 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.need-section {
    background: var(--dark-card);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 50px;
}

.card {
    position: relative;
    background: var(--dark-elevated);
    padding: 44px 30px 40px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(29, 111, 136, 0.22);
    transition: transform 0.35s ease;
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.card-icon svg {
    width: 35px;
    height: 35px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-preview {
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 30px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--text-light);
}

.about-text h2 {
    color: var(--text-dark);
}

.about-text .btn {
    margin-top: 20px;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.stats-section {
    background: linear-gradient(135deg, #1a2a3f, #2d3f55);
    color: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(229, 193, 88, 0.2);
    border-bottom: 1px solid rgba(229, 193, 88, 0.2);
}

/* Gallery Preview Carousel */
.gallery-preview {
    padding: 30px 0 25px;
    background: var(--dark-elevated);
    overflow: hidden;
}

.gallery-preview .section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 22px;
    margin-bottom: 15px;
}

.simple-carousel {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: transparent;
}

.simple-carousel-track {
    display: flex;
    width: auto;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    direction: rtl;
    align-items: center;
}

.simple-carousel-slide {
    flex: 0 0 calc(100% / 5);
    width: calc(100% / 5);
    height: 75%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.85;
    padding: 0 12px;
    box-sizing: border-box;
    z-index: 1;
    transform: scale(0.95);
}

.simple-carousel-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.18);
}

.simple-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.simple-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.simple-carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.simple-carousel-btn.simple-prev {
    right: 20px;
}

.simple-carousel-btn.simple-next {
    left: 20px;
}

.simple-carousel-btn i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.gallery-cta {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .simple-carousel {
        height: 300px;
    }
    
    .simple-carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .simple-carousel-btn.simple-prev {
        right: 10px;
    }
    
    .simple-carousel-btn.simple-next {
        left: 10px;
    }
}

/* Gallery Page */
.gallery-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
}

.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item.tall {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 111, 136, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--white);
    font-size: 2rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev i,
.lightbox-next i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--dark-blue);
    font-weight: 600;
    z-index: 10001;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        grid-auto-rows: 130px;
        gap: 12px;
    }

    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .lightbox img {
        max-width: 95%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        right: 10px;
    }
    
    .lightbox-next {
        left: 10px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Frank Ruhl Libre', serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

.branches-section {
    background: var(--light-blue);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.branch-card {
    background: var(--dark-elevated);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.branch-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-image img {
    transform: scale(1.1);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.branch-badge.new {
    background: var(--secondary-color);
}

.branch-content {
    padding: 25px;
}

.branch-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.branch-location {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.branch-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 80px;
}

.education-approach {
    background: var(--dark-lighter);
    border-top: 1px solid rgba(229, 193, 88, 0.15);
    border-bottom: 1px solid rgba(229, 193, 88, 0.15);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

.approach-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--cream);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.approach-item:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.approach-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--white);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(29, 111, 136, 0.14), var(--shadow);
    transition: all 0.35s ease;
}

.approach-icon svg {
    width: 32px;
    height: 32px;
}

.approach-item:hover .approach-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px) rotate(-4deg);
    box-shadow: 0 10px 22px rgba(29, 111, 136, 0.28);
}

.approach-item:hover .approach-icon svg {
    stroke: var(--white);
}

.approach-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.approach-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.approvals-section {
    background: var(--dark-elevated);
}

.approvals-grid {
    display: flex;
    gap: 16px;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: nowrap;
}

.approval-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 280px;
    min-width: 220px;
}

.approval-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.approval-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.approval-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 74, 92, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.approval-name {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.approval-card:hover .approval-overlay {
    opacity: 1;
}

.approval-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.approval-modal.active {
    opacity: 1;
}

.approval-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.approval-modal.active .approval-modal-content {
    transform: scale(1);
}

.approval-modal-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.approval-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.approval-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approval-modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.donation-modal.active {
    display: flex;
    opacity: 1;
}

.donation-modal-content {
    position: relative;
    width: 100%;
    max-width: 95vw;
    max-height: 95vh;
    background: var(--white);
    border-radius: 16px;
    padding: 40px 20px 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.donation-modal.active .donation-modal-content {
    transform: scale(1);
}

.donation-modal-content h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-align: center;
}

.donation-subtitle {
    color: var(--text-light);
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 1.05rem;
}

.donation-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: auto;
    background: var(--cream);
    position: relative;
}

.donation-iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 700px;
    border: none;
}

.donation-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.donation-modal-close:hover {
    background: var(--dark-blue);
    transform: rotate(90deg);
}

.bank-transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.bank-transfer-modal.active {
    display: flex;
    opacity: 1;
}

.bank-transfer-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 40px 35px;
    max-width: 500px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bank-transfer-modal.active .bank-transfer-content {
    transform: scale(1);
}

.bank-transfer-content h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bank-transfer-content h3 i {
    color: var(--secondary-color);
}

.bank-details {
    background: var(--cream);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bank-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-value {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 1.05rem;
    direction: ltr;
}

.copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    padding: 14px 24px;
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.bank-note {
    background: var(--light-blue);
    padding: 15px;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: start;
}

.bank-note i {
    margin-top: 2px;
    flex-shrink: 0;
}

.bank-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-modal-close:hover {
    background: var(--dark-blue);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .donation-modal-content {
        max-width: 100%;
        padding: 50px 15px 15px;
        max-height: 95vh;
    }
    
    .donation-modal-content h2 {
        font-size: 1.4rem;
    }
    
    .donation-iframe-container {
        min-height: 500px;
    }
    
    .donation-iframe-container iframe {
        min-height: 500px;
    }
    
    .bank-transfer-content {
        padding: 40px 20px;
    }
    
    .bank-transfer-content h3 {
        font-size: 1.3rem;
    }
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 25px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 40px;
    justify-content: center;
    align-items: start;
    margin-bottom: 15px;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

.donation-methods {
    display: flex;
    gap: 10px;
}

.donation-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 10px;
    gap: 4px;
}

.donation-btn i {
    font-size: 1.4rem;
}

.donation-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
    font-size: 0.9rem;
}

.contact-item:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.contact-item i {
    font-size: 1rem;
    width: 16px;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0 0;
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
}

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 10px 0;
}

.mobile-bottom-bar {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.mobile-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
    transition: all 0.3s ease;
}

.mobile-action:hover {
    color: var(--primary-color);
    background: var(--light-blue);
}

.mobile-action i {
    font-size: 1.5rem;
}

.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../logo תורת ישראל.png') center/cover;
    opacity: 0.08;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--white);
    text-align: center;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.director-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.director-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.director-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 400px;
}

.director-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    z-index: 1;
}

.director-intro {
    margin-bottom: 25px;
}

.director-intro h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.director-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.director-message p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--text-light);
}

.director-quote {
    background: var(--cream);
    padding: 30px;
    border-right: 4px solid var(--gold);
    border-radius: 10px;
    margin: 40px 0 30px 0;
    position: relative;
}

.director-quote i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
}

.director-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-blue);
    line-height: 1.8;
    margin: 0;
    padding-right: 40px;
}

.director-quote cite {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
    margin-top: 10px;
    padding-right: 40px;
}

.uniqueness-points {
    margin-top: 40px;
    width: 500px;
}

.uniqueness-points h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.point-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.point-item i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.point-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.point-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.branches-list-section {
    padding: 80px 0;
    background: var(--cream);
}

.branches-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.branch-card-main {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.branch-card-main:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.branch-image-main {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.branch-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card-main:hover .branch-image-main img {
    transform: scale(1.15);
}

.branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(13, 59, 79, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--white);
}

.branch-card-main:hover .branch-overlay {
    opacity: 1;
}

.branch-overlay i {
    font-size: 2.5rem;
}

.branch-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.branch-badge.veteran {
    background: var(--primary-color);
    color: var(--white);
}

.branch-badge.new {
    background: var(--secondary-color);
    color: var(--white);
}

.branch-info-main {
    padding: 30px;
}

.branch-info-main h3 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.branch-location-main {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.branch-location-main i {
    font-size: 1.1rem;
}

.branch-info-main p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 75px;
}

.branch-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.highlight-tag i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        height: 100dvh;
        min-height: 600px;
    }

    .logo {
        padding: 4px 10px;
    }

    .logo img {
        height: 56px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mobile-bottom-bar {
        display: grid;
    }

    body {
        padding-bottom: 70px;
    }

    section {
        padding: 50px 0;
    }

    .director-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .points-grid {
        grid-template-columns: 1fr;
    }

    /* Branch Page Styles */
.branch-hero {
    position: relative;
    background: linear-gradient(135deg, #2a3a4f 0%, #344152 100%);
    padding: 140px 0 80px;
    min-height: 400px;
}

.branch-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 58, 79, 0.9), rgba(52, 65, 82, 0.85));
}

.branch-hero-content {
    position: relative;
    z-index: 2;
}

.branch-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.branch-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.branch-breadcrumb a:hover {
    opacity: 0.8;
}

.branch-breadcrumb i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.branch-breadcrumb span {
    color: var(--text-light);
}

.branch-hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.branch-hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.branch-hero-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.6;
}

.branch-about {
    padding: 80px 0;
    background: var(--dark-elevated);
}

.branch-about-simple {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.branch-about-simple .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.branch-about-simple p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 18px;
}

.branch-highlights-section {
    margin-top: 50px;
}

.branch-highlights-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.highlight-item {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(229, 193, 88, 0.15);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 193, 88, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.highlight-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.branch-about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.branch-info-box,
.branch-cta-box {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(229, 193, 88, 0.15);
}

.branch-info-box h3,
.branch-cta-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--gold);
    width: 24px;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item a,
.info-item span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--gold);
}

.branch-cta-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.branch-team {
    padding: 80px 0;
    background: var(--dark-lighter);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.team-member {
    background: var(--dark-elevated);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(229, 193, 88, 0.12);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 193, 88, 0.25);
}

.team-member-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--dark-card);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 35, 50, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-overlay i {
    font-size: 4rem;
    color: rgba(229, 193, 88, 0.3);
}

.team-member-info {
    padding: 25px;
}

.team-member-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-role {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-bio {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.branch-gallery-section {
    padding: 80px 0;
    background: var(--dark-elevated);
}

.branch-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.branch-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.branch-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.branch-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .branch-about-content {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .branch-hero {
        padding: 120px 0 60px;
    }
    
    .branch-hero-title {
        font-size: 2rem;
    }
    
    .branch-about,
    .branch-team,
    .branch-gallery-section {
        padding: 50px 0;
    }
    
    .branch-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

    .branches-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .approvals-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
