/* assets/css/styles.css */
:root {
    --primary-green: #1d7a3e;
    --primary-red: #c8102e;
    --black: #0b0b0b;
    --white: #ffffff;
    --light-gray: #eae7df;
    --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #f4f2eb;
    color: #1e1e2a;
    line-height: 1.5;
}

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

/* Top Bar */
.top-bar {
    background: var(--black);
    color: rgba(255,255,255,0.8);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-red);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar .contact-icons a {
    color: rgba(255,255,255,0.75);
    margin-right: 16px;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-bar .contact-icons a i { margin-right: 5px; color: var(--primary-red); }

.lang-switch a {
    color: #ccc;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.2s;
}

.lang-switch .active-lang {
    background: var(--primary-green);
    color: white;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    padding: 16px 0;
    border-bottom: 3px solid var(--primary-green);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-placeholder {
    background: var(--black);
    color: var(--primary-green);
    font-weight: 800;
    font-size: 1.8rem;
    padding: 6px 18px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    text-decoration: none;
}

.logo-area span { font-weight: 700; color: var(--black); }
.logo-area small { display: block; font-size: 0.7rem; color: #4a4a5a; font-weight: 400; }

.nav-menu { display: flex; gap: 32px; font-weight: 600; }
.nav-menu a {
    text-decoration: none;
    color: var(--black);
    transition: 0.2s;
    font-size: 1rem;
}
.nav-menu a:hover { color: var(--primary-red); }
.nav-menu .active {
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 6px;
}
.mobile-toggle { display: none; font-size: 1.6rem; cursor: pointer; color: var(--black); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #1f3b2a 100%);
    color: white;
    padding: 40px 0 50px;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-text h1 i { color: var(--primary-green); }
.hero-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 18px 0 28px;
}
.btn-green {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 122, 62, 0.4);
    transition: 0.25s;
}
.btn-green:hover { transform: scale(1.02); box-shadow: 0 12px 28px rgba(29,122,62,0.6); }

.hero-image {
      background: var(--primary-red);
      border-radius: 30px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 18px;
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" preserveAspectRatio="none"><rect width="200" height="120" fill="%231d7a3e" opacity="0.3"/><circle cx="60" cy="60" r="30" fill="%23c8102e" opacity="0.3"/><circle cx="140" cy="40" r="20" fill="%23f1c40f" opacity="0.2"/></svg>');
      background-size: cover;
      background-blend-mode: overlay;
      min-width: 200px;
      min-height: 140px;
      justify-content: center;
      border: 2px solid var(--primary-green);
    }
    .hero-image i {
      font-size: 4rem;
      color: white;
      background: rgba(0,0,0,0.3);
      padding: 18px;
      border-radius: 60px;
    }

    .hero-stats {
      display: flex;
      gap: 30px;
      background: rgba(255,255,255,0.05);
      padding: 14px 24px;
      border-radius: 60px;
      backdrop-filter: blur(4px);
      margin-top: 16px;
    }
    .hero-stats strong { display: block; font-size: 1.8rem; color: var(--primary-green); }


/* Section Templates */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    position: relative;
    display: inline-block;
    color: var(--black);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 4px;
}
.section-title i { color: var(--primary-green); margin-right: 10px; }

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

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: 0.25s;
    border: 1px solid rgba(0,0,0,0.02);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h3 i { color: var(--primary-red); font-size: 1.8rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin: 16px 0 8px;
}
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.2s;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* Footer */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-radius: 40px 40px 0 0;
    border-top: 4px solid var(--primary-green);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: white; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin: 6px 0; }
.footer .social i { font-size: 1.6rem; margin-right: 14px; color: var(--primary-green); cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; margin-top: 30px; text-align: center; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .grid-2col, .grid-3col { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .mobile-toggle { display: block; }
    .nav-menu { display: none; width: 100%; flex-direction: column; padding: 20px 0; gap: 14px; }
    .nav-menu.open { display: flex; }
    .hero-text h1 { font-size: 2.2rem; }
    .grid-2col, .grid-3col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar .container { flex-direction: column; align-items: start; gap: 8px; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
}


/* Make sure containers are full width */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* For admin sections display */
.section-default .items-grid,
.section-membership .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Cards should take full width of their container */
.card-item {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s;
    width: 100%;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
    
    .section-default .items-grid,
    .section-membership .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-default .items-grid,
    .section-membership .items-grid {
        grid-template-columns: 1fr;
    }
    
    .card-item {
        padding: 20px;
    }
}