:root {
    --bg-color: #F5F5F7;
    --text-color: #4A4A4A;
    --text-white: #E2E2E5;
    --primary-color: #ED1C24;
    --about-us-color: #1A73E8;
    --areas-of-work-color: #4CAF50;
    --current-events-color: #FFA726;
    --new-case-law-color: #E53935;
    --new-case-law-bg: #e8e8ea;
    --primary-dark: #971115;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.1);
}

@font-face {
  font-family: 'Orbitron Regular';
  src: url('/fonts/Orbitron-Regular.ttf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* Hero Banner Styles */

/* Hero Banner Styles */
.hero-banner {
    background: #e8e8ea;
    padding: 4rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero-container-banner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.hero-content-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 400px;
}

.hero-text-banner {
    padding-right: 2rem;
}

.hero-text-banner h1 {
    font-family: 'Orbitron Regular', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 3rem;
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-text-banner p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 90%;
    font-weight: 400;
}

.main-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.main-image img {
    width: 100%;
    max-width: 520px;
    height: 350px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
}


/* Responsive Design for Hero Banner */
@media (max-width: 1200px) {
    .hero-container-banner {
        padding: 0 3rem;
    }
    
    .hero-content-banner {
        gap: 4rem;
    }
    
    .hero-text-banner h1 {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .main-image img {
        max-width: 480px;
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .hero-container-banner {
        padding: 0 2rem;
    }

    .hero-banner {
        border-radius: 0 0 20px 20px;
    }
    
    .hero-content-banner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .hero-text-banner {
        padding-right: 0;
        order: 1;
    }
    
    .hero-text-banner h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .main-image {
        justify-content: center;
        order: 2;
    }
    
    .main-image img {
        max-width: 600px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 3rem 0;
    }
    
    .hero-container-banner {
        padding: 0 1.5rem;
    }
    
    .hero-content-banner {
        gap: 2rem;
    }
    
    .hero-text-banner h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-text-banner p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .main-image img {
        max-width: 100%;
        height: 280px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 2rem 0;
    }
    
    .hero-container-banner {
        padding: 0 1rem;
    }
    
    .hero-text-banner h1 {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .hero-text-banner p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .main-image img {
        height: 240px;
        border-radius: 12px;
    }
}

/* ///////////////////////////////////// */

/* Areas Section */
.areas-section {
    background: var(--bg-color);
    padding: 2rem 0 4rem 0;
}

.areas-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 3;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.subcategory-item {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.subcategory-header {
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.subcategory-header:hover {
    border-bottom-color: var(--primary-color);
}

.category-section:nth-child(1) .subcategory-header {
    border-bottom: 2px solid var(--about-us-color);
}

.category-section:nth-child(2) .subcategory-header {
    border-bottom: 2px solid var(--primary-color);
}

.category-section:nth-child(3) .subcategory-header {
    border-bottom: 2px solid var(--areas-of-work-color);
}

.category-section:nth-child(4) .subcategory-header {
    border-bottom: 2px solid #ff5f1f;
}

.category-section:nth-child(5) .subcategory-header {
    border-bottom: 2px solid #9C27B0;
}

.subcategory-header {
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.subcategory-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
}

.subcategory-header:hover h3 {
    color: var(--primary-color);
}

.expand-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expand-icon i {
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.subcategory-item.active .expand-icon i {
    transform: rotate(180deg);
}

.subcategory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
}

.subcategory-item.active .subcategory-content {
    max-height: 500px;
    padding: 1rem 0 2rem 0;
}

.subcategory-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.subcategory-item.active .subcategory-content p {
    opacity: 1;
    transform: translateY(0);
}

.subcategory-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-content li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.subcategory-item.active .subcategory-content li:nth-child(n) {
    opacity: 1;
    transform: translateY(0);
}

/* Apply delays using a pattern that covers any reasonable number */
.subcategory-item.active .subcategory-content li:nth-child(1) { transition-delay: 0.15s; }
.subcategory-item.active .subcategory-content li:nth-child(2) { transition-delay: 0.2s; }
.subcategory-item.active .subcategory-content li:nth-child(3) { transition-delay: 0.25s; }
.subcategory-item.active .subcategory-content li:nth-child(4) { transition-delay: 0.3s; }
.subcategory-item.active .subcategory-content li:nth-child(5) { transition-delay: 0.35s; }
.subcategory-item.active .subcategory-content li:nth-child(6) { transition-delay: 0.4s; }
.subcategory-item.active .subcategory-content li:nth-child(7) { transition-delay: 0.45s; }
.subcategory-item.active .subcategory-content li:nth-child(8) { transition-delay: 0.5s; }
.subcategory-item.active .subcategory-content li:nth-child(9) { transition-delay: 0.55s; }
.subcategory-item.active .subcategory-content li:nth-child(10) { transition-delay: 0.6s; }
.subcategory-item.active .subcategory-content li:nth-child(11) { transition-delay: 0.65s; }
.subcategory-item.active .subcategory-content li:nth-child(12) { transition-delay: 0.7s; }
.subcategory-item.active .subcategory-content li:nth-child(13) { transition-delay: 0.75s; }
.subcategory-item.active .subcategory-content li:nth-child(14) { transition-delay: 0.8s; }
.subcategory-item.active .subcategory-content li:nth-child(15) { transition-delay: 0.85s; }
.subcategory-item.active .subcategory-content li:nth-child(16) { transition-delay: 0.9s; }
.subcategory-item.active .subcategory-content li:nth-child(17) { transition-delay: 0.95s; }
.subcategory-item.active .subcategory-content li:nth-child(18) { transition-delay: 1s; }
.subcategory-item.active .subcategory-content li:nth-child(19) { transition-delay: 1.05s; }
.subcategory-item.active .subcategory-content li:nth-child(20) { transition-delay: 1.1s; }

.subcategory-item.active .subcategory-content li:nth-child(n+21) {
    transition-delay: 1.15s; 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Color coding for categories */
.category-section:nth-child(1) h2 {
    color: var(--about-us-color);
}

.category-section:nth-child(2) h2 {
    color: var(--primary-color);
}

.category-section:nth-child(3) h2 {
    color: var(--areas-of-work-color);
}

.category-section:nth-child(4) h2 {
    color: #ff5f1f;
}

.category-section:nth-child(5) h2 {
    color: #9C27B0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .areas-section .container {
        padding: 0 1.5rem;
    }
    
    .category-section h2 {
        font-size: 1.2rem;
    }
    
    .subcategory-header h3 {
        font-size: 1rem;
    }
    
    .subcategory-content p {
        font-size: 0.9rem;
    }
    
    .subcategory-content li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .areas-section .container {
        padding: 0 1rem;
    }
    
    .category-section h2 {
        font-size: 1.1rem;
    }
    
    .subcategory-header {
        padding: 0.8rem 0;
    }
    
    .expand-icon {
        width: 28px;
        height: 28px;
    }
    
    .expand-icon i {
        font-size: 0.8rem;
    }
}

