/*
Theme Name: ljubenko
Theme URI: https://ljubenko-i-partneri.ectoris.com/
Author: Ectoris
Author URI: https://ljubenko-i-partneri.ectoris.com/
Description: Tema za odvjetnički ured.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ljubenko
*/

: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);
    interpolate-size: allow-keywords;
}

@font-face {
  font-family: 'Orbitron Regular';
  src: url('fonts/Orbitron-Regular.ttf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron Medium';
  src: url('fonts/Orbitron-Medium.ttf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron Bold';
  src: url('fonts/Orbitron-Bold.ttf') format('opentype');
  font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header styles */
header {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1624px;
    margin: 0 auto;
    padding: 5px 20px;
    position: relative;
}

nav img {
    height: auto;
    max-height: 50px;
    width: 280px;
}

.contact-menu-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    position: relative;
    margin-left: 1rem;
    padding-left: 1rem;
}

/* Vertical separators - only show on desktop */
nav ul li:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: var(--primary-color);
}

nav ul li a {
    position: relative;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 900;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: red;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    font-family: "Josefin Sans", sans-serif;
    font-weight: bolder;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--primary-dark);
}

@media (max-width: 1624px) {
    nav ul li a {
        font-size: 0.8rem;
    }
}

@media (max-width: 1400px) {
    nav ul li {
        margin-left: 1.2rem;
        padding-left: 1.2rem;
    }
}

/* Standard desktops - more aggressive reduction */
@media (max-width: 1300px) {
    nav ul li {
        margin-left: 0.8rem;
        padding-left: 0.8rem;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        letter-spacing: 0.5px; /* Reduce letter spacing */
    }
    
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    nav img {
        width: 260px;
    }
}

/* Compact desktop layout */
@media (max-width: 1200px) {
    nav ul li {
        margin-left: 0.6rem;
        padding-left: 0.6rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    nav img {
        width: 240px;
    }
}

/* Mobile layout - nav moves under logo and CTA */
@media (max-width: 870px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 10px 20px;
    }
    
    /* Create wrapper for top row elements */
    nav > a:first-child,
    .contact-menu-section {
        order: 1;
    }
    
    nav > a:first-child {
        align-self: flex-start;
    }
    
    .contact-menu-section {
        align-self: end;
        position: absolute;
    }
    
    nav img {
        width: 220px;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Navigation links below */
    nav ul {
        order: 2;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        margin-top: 10px;
    }
    
    nav ul li {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    nav ul li:first-child {
        margin-left: 0;
        padding-left: 0;
    }
    
    nav ul li:first-child::before {
        display: none;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
        display: inline-block;
    }

    nav ul li {
        margin-left: 1.2rem;
        padding-left: 1.2rem;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    nav {
        padding: 10px 15px;
        gap: 12px;
    }
    
    nav img {
        width: 200px;
    }
    
    .cta-button {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    nav {
        padding: 8px 15px;
        gap: 10px;
    }
    
    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    nav ul li {
        margin-left: 0.8rem;
        padding-left: 0.8rem;
    }
    
    nav ul li a {
        font-size: 0.75rem;
    }
    
}

/* Mobile portrait */
@media (max-width: 480px) {
    nav {
        padding: 5px 10px;
        gap: 8px;
    }
    
    .cta-button {
        padding: 0.35rem 0.35rem;
        font-size: 0.7rem;
    }
    
    nav img {
        width: 170px;
    }
    
    nav ul li {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    nav ul li a {
        font-size: 0.7rem;
        padding: 0.2rem 0;
    }
    
    .contact-menu-section {
        gap: 0.25rem;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    nav {
        padding: 5px 8px;
    }
    
    nav img {
        width: 160px;
    }

    nav ul li a {
        font-size: 0.65rem;
    }
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.language-toggle {
    animation: slideInFromRight 0.6s ease 0.6s forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.language-toggle svg {
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-toggle svg {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option.active {
    font-weight: 900;
    background: rgba(0, 0, 0, 0.03);
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    .language-toggle {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .lang-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .language-toggle {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .lang-option {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .language-toggle {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .lang-option {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .language-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        padding: 0.35rem 0.35rem;
        font-size: 0.65rem;
    }
}

.hero-anniversary-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding-inline: 5px;
    height: 30px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    font-family: 'Orbitron Bold', sans-serif;
    font-size: 0.9rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.hero-anniversary-badge .year-2026 {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Responsive adjustments for anniversary badge */
@media (max-width: 768px) {
    .hero-anniversary-badge {
        top: 15px;
        right: 15px;
        height: 26px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-anniversary-badge {
        top: 10px;
        right: 10px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* HERO content styles */
#hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 0 0 50px 50px;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px 80px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero-text {
    position: absolute;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    color: var(--text-white);
    max-width: 60%;
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h1 {
    font-family: 'Orbitron Medium', sans-serif;
    letter-spacing: 3px;
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-white);
    line-height: 1.2;
}

.hero-alternate-title{
    font-size: 5rem;
    color: #388eff !important;
}

.hero-alternate2-title{
    color: var(--primary-color) !important;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-text p:nth-child(2) {
    padding-left: 0; /* First p tag - no padding */
}

.hero-text p:nth-child(3) {
    padding-left: 2rem; /* Second p tag - medium padding */
}

.hero-text p:nth-child(4) {
    padding-left: 4rem; /* Third p tag - larger padding */
}

.hero-text p:nth-child(5) {
    padding-left: 6rem; /* Fourth p tag if needed - largest padding */
}

@media (max-width: 1200px) {
    .hero-text p:nth-child(3) {
        padding-left: 1.5rem;
    }
    
    .hero-text p:nth-child(4) {
        padding-left: 3rem;
    }
    
    .hero-text p:nth-child(5) {
        padding-left: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-text p:nth-child(3) {
        padding-left: 1rem;
    }
    
    .hero-text p:nth-child(4) {
        padding-left: 2rem;
    }
    
    .hero-text p:nth-child(5) {
        padding-left: 3rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text p:nth-child(3) {
        padding-left: 0.5rem;
    }
    
    .hero-text p:nth-child(4) {
        padding-left: 1rem;
    }
    
    .hero-text p:nth-child(5) {
        padding-left: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}

.hero-cta-button {
    background: var(--primary-color);
    color: var(--text-white);
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.1rem;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta-button:hover {
    background: var(--primary-dark);
}

.hero-cta-button i {
    font-size: 1rem;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-media.active {
    opacity: 1;
}

.hero-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1s ease-in-out; /* Smooth transition for video fade */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-image.active {
    opacity: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

.hero-image:first-child::after {
    background: rgba(0,0,0,0.7);
}

.hero-image[style*="hero3.jpg"]::after {
    background: rgba(0, 0, 0, 0.5);
}

.hero-image[style*="heroArchive1.jpeg"]::after {
    background: rgba(0, 0, 0, 0.1);
}

.hero-image[style*="heroArchive2.jpeg"]::after {
    background: rgba(0, 0, 0, 0.5);
}


/* Special styling for the video slide hero image */
.hero-media[data-type="video"] .hero-image {
    z-index: 0; /* Behind the video initially */
}

.hero-media[data-type="video"] .hero-image.active {
    z-index: 1; /* In front of the video when active */
}

#nav-menu a {
    text-transform: uppercase;
}

.hero-nav-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, -5px);
    display: flex;
    gap: 1.5rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    outline: 3px solid rgba(190, 190, 190, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    outline: 2px solid var(--primary-color);
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-dot:hover {
    background: var(--primary-color);
}

.typewrite > .wrap { 
    border-right: 0.08em solid #fff;
}

.hero-text h1 {
    opacity: 0;
}

.hero-text h1.typewrite {
    opacity: 1;
}

.hero-image[style*="hero4.png"] {
    background-position: center 20%; /* 40% from the top */
}

@media (max-width: 1440px) {
    .hero-content-wrapper {
        padding: 50px 60px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 1200px) {
    .hero-content-wrapper {
        padding: 50px 40px;
    }
    
    .hero-text h1 {
        font-size: 2.3rem;
        letter-spacing: 1px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-content-wrapper {
        padding: 90px 20px 20px 20px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-text p {
        max-width: 600px;
        font-size: 1rem;
    }

    
    .hero-media::after {
        background: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 768px) {
    #hero {
        height: 600px;
    }
    
    .hero-content-wrapper {
        padding: 80px 20px 20px 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
        margin-right: 10px;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: none;
        margin-right: 20px;
    }
    
    .hero-nav-dots {
        bottom: 1rem;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    #hero {
        height: 500px;
    }
    
    .hero-content-wrapper {
        padding: 60px 1.5rem 1.5rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 2rem;
        line-height: 1.1;
    }

    .hero-text:nth-child(3) h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-nav-dots {
        bottom: 0.5rem;
        gap: 1rem;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    .hero-cta-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

/* About Us Section */

.about-section {
    background-image: url('assets/bg-blue.png');
    background-size: cover;
    background-position: 50% 60%;
    background-repeat: no-repeat;
    padding: 6rem 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.75);
    z-index: 1;
}

.about-section .container {
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
    z-index: 2;
}



.about-section h2 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--about-us-color);
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    border: none;
    padding: 0;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    padding: 0;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
    max-width: 1420px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(4.3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem 1rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transition-delay: 0s !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition-delay: 0s !important;
}

.stat-item:hover {
    transform: scale(1.12) translateY(-10px) !important;
    background: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 16px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition-delay: 0s !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-icon {
    margin: 0 auto 0rem auto;
    display: flex;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)!important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) translateX(-20px) !important;
    transition-delay: 0s !important;
}


.stat-icon i{
    color: var(--primary-color);
    font-size: 50px;
    object-fit: contain;
}

.stat-icon svg {
    fill: var(--primary-color);
    width: 78px;
    height: 50px;
}


.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* spacing between icons */
    border: 1px solid #ccc; /* just to visualize the square */
    font-size: 14px; /* controls icon size */
}

.stat-number {
    font-family: 'Orbitron Regular', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-right: 0.5rem;
    display: inline;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: lowercase;
    display: inline;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-description {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    color: #555;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1440px) {
    .about-section {
        background-position: center -650px;
    }
    
    .about-section .container {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    .about-section {
        background-position: center -550px;
    }
    
    .about-section .container {
        padding: 0 150px;
    }
    
    .about-section h2 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        gap: 3rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .about-section {
        padding: 4rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-position: center -450px;
    }
    
    .about-section .container {
        padding: 0 100px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3.5rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-image: url('assets/bg-blue.png');
        background-size: 200% auto;
        background-position: center center;
        transform-origin: center center;
    }

    .about-section::before {
        content: '';
        position: absolute;
        background-size: 150% auto;
        opacity: 0.3;
        top: -32%;
        left: -15%;
        width: 251%;
        height: 151%;
        background-image: url('assets/bg-blue.png');
        background-position: center;
        transform: rotate(90deg);
        z-index: -1;
    }
    
    .about-section {
        background-image: none;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-description {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        max-width: 600px;
    }
    
    .stat-item {
        padding: 1.8rem 1.3rem;
        border-radius: 14px;
    }
    
    .stat-icon i {
        font-size: 40px;
    }

    .stat-icon svg {
        width: 68px;
        height: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
    }
    
    .stat-description {
        font-size: 0.9rem;
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .about-section {
        background-position: center -250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section::before {
        top: -35%;
        left: -30%;
        width: 350%;
        height: 151%;
    }
    
    .stat-item {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3.5rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-position: center -200px;
    }
    
    .about-section .container {
        padding: 0 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        max-width: 320px;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .stat-icon i {
        font-size: 35px;
    }

    .stat-icon svg {
        width: 63px;
        height: 35px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
        max-width: 250px;
    }
}

@media (max-width: 360px) {
    .about-section {
        background-position: center -150px;
    }
    
    .about-section .container {
        padding: 0 1rem;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        max-width: 280px;
    }
    
    .stat-item {
        padding: 1.3rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-description {
        font-size: 0.8rem;
    }
}

/* Areas of work */
/* Areas of work - Updated with smooth animations */
.areas-section {
    background-image: url('assets/bg-green.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.75);
    z-index: 1;
}

.areas-section .container {
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
    z-index: 2;
}

.areas-section h2 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--areas-of-work-color);
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    border: none;
    padding: 0;
}

.areas-grid {
    display: flex;
    flex-direction: column;
}

.area-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.area-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.area-item {
    background: #e5e5e5;
    border-radius: 16px;
    padding: 1.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Smooth height animation */
    height: 80px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* Desktop expanded state */
.area-row.expanded .area-item {
    height: auto; /* Fixed height for expanded state */
}

/* Mobile expanded state */
.area-item.mobile-expanded {
    height: 320px !important;
    transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Background colors remain the same */
.area-row:nth-child(1) .area-item:nth-child(1) { background: rgba(130, 130, 130, 0.9); }
.area-row:nth-child(1) .area-item:nth-child(2) { background: rgba(120, 120, 120, 0.9); }
.area-row:nth-child(1) .area-item:nth-child(3) { background: rgba(110, 110, 110, 0.9); }
.area-row:nth-child(1) .area-item:nth-child(4) { background: rgba(100, 100, 100, 0.9); }

.area-row:nth-child(2) .area-item:nth-child(1) { background: rgba(120, 120, 120, 0.9); }
.area-row:nth-child(2) .area-item:nth-child(2) { background: rgba(110, 110, 110, 0.9); }
.area-row:nth-child(2) .area-item:nth-child(3) { background: rgba(100, 100, 100, 0.9); }
.area-row:nth-child(2) .area-item:nth-child(4) { background: rgba(90, 90, 90, 0.9); }

.area-row:nth-child(3) .area-item:nth-child(1) { background: rgba(110, 110, 110, 0.9); }
.area-row:nth-child(3) .area-item:nth-child(2) { background: rgba(100, 100, 100, 0.9); }
.area-row:nth-child(3) .area-item:nth-child(3) { background: rgba(90, 90, 90, 0.9); }
.area-row:nth-child(3) .area-item:nth-child(4) { background: rgba(80, 80, 80, 0.9); }

.area-header {
    margin-bottom: 1rem;
}

.area-header h3 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.area-content {
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* Desktop expanded content animation */
.area-row.expanded .area-content {
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
}

/* Mobile expanded content animation */
.area-item.mobile-expanded .area-content {
    opacity: 1 !important;
    overflow: visible !important;
    transform: translateY(0) !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s !important;
}

.area-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.area-content li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered animation for list items on desktop */
.area-row.expanded .area-content li {
    opacity: 1;
    transform: translateY(0);
}

.area-row.expanded .area-content li:nth-child(1) {
    transition-delay: 0.4s;
}

.area-row.expanded .area-content li:nth-child(2) {
    transition-delay: 0.5s;
}

.area-row.expanded .area-content li:nth-child(3) {
    transition-delay: 0.6s;
}

/* Staggered animation for list items on mobile */
.area-item.mobile-expanded .area-content li {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.area-item.mobile-expanded .area-content li:nth-child(1) {
    transition-delay: 0.5s !important;
}

.area-item.mobile-expanded .area-content li:nth-child(2) {
    transition-delay: 0.6s !important;
}

.area-item.mobile-expanded .area-content li:nth-child(3) {
    transition-delay: 0.7s !important;
}

.area-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-white);
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button animation on desktop */
.area-row.expanded .read-more-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* Button animation on mobile */
.area-item.mobile-expanded .read-more-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.8s !important;
}

.read-more-btn:hover {
    color: var(--primary-color);
}

.arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more-btn:hover .arrow-circle {
    background: var(--primary-color);
    transform: translateX(3px);
    transition-delay: 0s !important;
}

.arrow-circle i {
    font-size: 0.7rem;
    color: white;
}

/* Desktop hover effects */
@media (hover: hover) {
    .area-row:hover {
        transform: none !important;
    }
    
    .area-row:hover .area-item {
        height: auto !important;
    }
    
    .area-row:hover .area-content {
        opacity: 1 !important;
        overflow: visible !important;
        transform: translateY(0) !important;
    }
    
    .area-row:hover .area-content li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .area-row:hover .read-more-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0s !important;
    }
}

/* Responsive breakpoints */
@media (max-width: 1440px) {
    .areas-section {
        background-position: center -650px;
    }
    
    .areas-section .container {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    .areas-section {
        background-position: center -550px;
    }
    
    .areas-section .container {
        padding: 0 150px;
    }
    
    .areas-section h2 {
        font-size: 2.5rem;
    }
    
    .area-item {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 1024px) {
    .areas-section {
        padding: 4rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-position: center -450px;
    }
    
    .areas-section .container {
        padding: 0 100px;
    }
    
    .area-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .area-row.expanded .area-item {
        height: 300px;
    }
    
    .area-item.mobile-expanded {
        height: auto !important;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .areas-section {
        padding: 3rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-position: center -350px;
    }
    
    .areas-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .area-row {
        grid-template-columns: 1fr;
    }
    
    /* Mobile closed state */
    .area-item {
        padding: 1.5rem;
        height: 80px !important;
        margin-bottom: 1rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Force collapsed content on mobile by default */
    .area-row.expanded .area-item {
        height: 80px !important;
    }
    
    .area-row.expanded .area-content,
    .area-content {
        opacity: 0 !important;
        overflow: hidden !important;
        transform: translateY(-10px) !important;
        transition-delay: 0s !important;
    }
    
    .area-row.expanded .area-content li,
    .area-content li {
        opacity: 0 !important;
        transform: translateY(5px) !important;
        transition-delay: 0s !important;
    }
    
    .area-row.expanded .read-more-btn,
    .read-more-btn {
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition-delay: 0s !important;
    }
}

@media (max-width: 480px) {
    .areas-section {
        padding: 2.5rem 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        background-position: center -200px;
    }
    
    .areas-section .container {
        padding: 0 1.5rem;
    }
    
    .areas-section h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .area-item {
        padding: 1.2rem;
    }
    
    .area-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .areas-section {
        background-position: center -150px;
    }
    
    .areas-section .container {
        padding: 0 1rem;
    }
    
    .areas-section h2 {
        font-size: 1.6rem;
    }
    
    .area-item {
        padding: 1rem;
    }
}


/* Events content styles */

#animatedPath {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawPath 6s linear forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

.event-card-link {
    text-decoration: none; /* makni underline */
    color: inherit; /* koristi boje iznutra */
    display: block; /* da se ponaša kao div */
}

.events-section {
    display: flex;
    flex-direction: column;
    background-image: url('assets/bg-gold.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.55);
}

.events-section .container {
    margin: 0 auto;
    padding: 0 275px;
    padding-block: 4rem !important;
    position: relative;
}

.events-section h2 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--areas-of-work-color);
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    border: none;
    padding: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
    justify-content: space-around;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.event-card.completed {
    order: 1;
    cursor: pointer;
}

.event-card.completed:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.event-card.announcement {
    order: -1;
    opacity: 0.85;
    cursor: pointer;
}

.event-card.announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
}

.event-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.event-card.completed:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.event-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 2px 0;
}

.event-date .year {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1;
}

.event-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.event-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-status {
    margin-top: auto;
}

.event-status span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: #28a745;
    color: white;
}

.status-upcoming {
    background: #ffc107;
    color: #333;
}

.event-more-btn {
    background: var(--primary-color);
    color: var(--text-white);
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-more-btn:hover {
    background: var(--primary-dark);
}

.event-venue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(126, 36, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #7e24ff;
}

.event-venue i {
    color: #7e24ff;
    font-size: 0.9rem;
}

.event-venue span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.event-card.announcement .event-venue {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #ffc107;
}

.event-card.announcement .event-venue i {
    color: #e0a800;
}

@media (max-width: 1440px) {
    .events-section .container {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    .events-section .container {
        padding: 0 150px;
    }
    
    .events-section h2 {
        font-size: 2.5rem;
    }
    
    .events-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .events-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .events-section .container {
        padding: 0 100px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .events-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .events-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .events-section .container {
        padding: 0 1.5rem;
    }
    
    .events-section h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .event-content {
        padding: 1.2rem;
    }
    
    .event-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .events-section .container {
        padding: 0 1rem;
    }
    
    .events-section h2 {
        font-size: 1.6rem;
    }
    
    .event-content {
        padding: 1rem;
    }
}


/* Case Law content styles - only affects sections inside main */

/* Case Law content styles - UPDATED with SVG background */

.case-law-section {
    background: linear-gradient(
    to bottom,#e8e8ea 0%,#e8e8ea 85%,#f5f5f7 100%
  );
    padding: 10rem 0 7rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* SVG Background Container */
.case-law-svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.case-law-svg-background svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animated stroke path */
#animated-case-law-path {
    stroke: var(--areas-of-work-color);
    opacity: 0.3;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 100 50;
    animation: leftToRight 8s linear infinite;
}

@keyframes leftToRight {
    0% {
        stroke-dashoffset: 150;
    }
    100% {
        stroke-dashoffset: -150;
    }
}

/* Updated overlay to work with SVG */
.case-law-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.case-law-section .container {
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
    z-index: 3;
}

.case-law-section h2 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--areas-of-work-color);
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    border: none;
    padding: 0;
}

.case-law-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
    justify-content: space-around;
}

.case-law-grid a{
    text-decoration: none;
}

.case-law-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    transition-delay: 0s !important;
    position: relative;
}

/* Paper fold corner - simple red triangle */
.case-law-item .paper-fold-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #ED1C24 transparent transparent;
    z-index: 4;
}

/* Exclamation mark - normal orientation */
.case-law-item .paper-fold-icon {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 5;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* ORIGINAL HOVER EFFECTS - restored */
.case-law-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1) !important;
    transition-delay: 0s !important;
}

/* Original red bottom line effect - restored */
.case-law-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--new-case-law-color);
    transition: width 0.5s ease;
}

.case-law-item:hover::after {
    width: 100%;
}

.case-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 3.5rem
}

.case-meta {
    margin-bottom: 1rem;
}

.case-meta .author {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1.2rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1440px) {
    .case-law-section .container {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    .case-law-section .container {
        padding: 0 150px;
    }
    
    .case-law-section h2 {
        font-size: 2.5rem;
    }
    
    .case-law-grid {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .case-law-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .case-law-section .container {
        padding: 0 100px;
    }
    
    .case-content {
        padding: 1.8rem;
        padding-bottom: 3.5rem
    }
}

@media (max-width: 768px) {
    .case-law-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .case-law-section .container {
        background-size: 1920px 1024px;
    }
    
    .case-law-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .case-law-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-content {
        padding: 1.5rem;
        padding-bottom: 3.5rem
    }
    
    .case-content h3 {
        font-size: 1.2rem;
    }
    
    .case-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 4;
    }
    
    /* Smaller paper fold on mobile */
    .case-law-item .paper-fold-corner {
        border-width: 0 40px 40px 0;
    }
    
    .case-law-item .paper-fold-icon {
        top: 6px;
        right: 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .case-law-section {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .case-law-section .container {
        padding: 0 1.5rem;
    }
    
    .case-law-section h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .case-content {
        padding: 1.2rem;
        padding-bottom: 3.5rem
    }
    
    .case-meta .author {
        font-size: 0.75rem;
    }
    
    .case-content h3 {
        font-size: 1.1rem;
    }
    
    .case-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
    
    /* Even smaller paper fold on small mobile */
    .case-law-item .paper-fold-corner {
        border-width: 0 35px 35px 0;
    }
    
    .case-law-item .paper-fold-icon {
        top: 5px;
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .case-law-section .container {
        padding: 0 1rem;
    }
    
    .case-law-section h2 {
        font-size: 1.6rem;
    }
    
    .case-content {
        padding: 1rem;
        padding-bottom: 3.5rem
    }
}


/* INFO SECTION content styles */

.info-section {
  background: #ED1C24;
  padding: 6rem 0 0;
  margin: 0;
  position: relative;
  color: white;
  transition: background 0.8s ease;
}

.halftone {
  width: 100%;
  height: 37px;
  background: linear-gradient(to bottom, #f5f5f7, #ED1C24);
}

.info-section .container {
    padding-bottom: 50px !important;
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
    padding-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
    justify-items: center;
}

.info-column h3 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.8s ease;
}

.info-column p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0;
    transition: color 0.8s ease;
}

.working-hours {
    margin-bottom: 2rem;
}

.working-hours .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: color 0.8s ease;
}

.working-hours .hours {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    transition: color 0.8s ease;
}

.meeting-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meeting-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.info-section svg {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.8s ease;
}

.info-section svg path {
    fill: var(--bg-color);
    transition: fill 0.8s ease;
}


.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-item .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

@media (max-width: 1440px) {
    .info-section .container {
        padding: 0 200px;
    }
    
    .info-grid {
        gap: 3rem;
    }
}

@media (max-width: 1200px) {
    .info-section .container {
        padding: 0 150px;
    }
    
    .info-grid {
        gap: 2.5rem;
    }
    
    .info-column h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .info-section {
        padding: 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .info-section .container {
        padding: 100px 100px;
    }
    
    .info-grid {
        gap: 2rem;
        justify-items: start;
    }
}

@media (max-width: 768px) {
    .info-section {
        padding: 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .info-column h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .info-column p {
        font-size: 0.95rem;
    }
    
    .working-hours {
        margin-bottom: 1.5rem;
    }
    
    .working-hours .day,
    .working-hours .hours {
        font-size: 1rem;
    }

    .read-time {
        bottom: 0.5rem !important;
        left: 1.2rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .info-section .container {
        padding: 1.5rem 1.5rem;
    }
    
    .info-grid {
        gap: 2rem;
    }
    
    .info-column h3 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .info-column p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .meeting-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .detail-item .label {
        font-size: 0.8rem;
    }
    
    .detail-item .value {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .info-section .container {
        padding: 1.5rem 1rem;
    }
    
    .info-column h3 {
        font-size: 1rem;
    }
    
    .info-column p {
        font-size: 0.85rem;
    }
    
    .meeting-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}


.read-time {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.read-time i {
    font-size: 0.85rem;
    color: var(--primary-color);
    opacity: 0.7;
}


/* Footer Styles */

.footer {
    background: #f5f5f7;
    padding: 4rem 0 0 0;
    margin: -10px 0;
    position: relative;
}

.footer .container {
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.footer-left {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.footer-left h4{
    text-align: left;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: auto;
    max-height: 50px;
    width: 315px;
}


.footer-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.footer-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.footer-info .email {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.footer-info * {
    text-decoration: none;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-column li {
    margin-bottom: 0.8rem;
}

.nav-column a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-column a:hover {
    color: var(--primary-color);
}

.scroll-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

.footer-bottom {
    background: var(--bg-color);
    padding: 1.5rem 0 0 0;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.footer-bottom .container {
    padding: 0 275px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 1600px) and (min-width: 1024px) {
    .about-section .container{
        padding: 0 200px;
    }
    .footer-bottom .container{
        padding: 0 200px;
    }
    .footer .container{
        padding: 0 200px;
    }
    .info-section .container{
        padding: 0px 200px;
    }
    .case-law-section .container{
        padding: 0 200px;
    }
    .events-section .container{
        padding: 0 200px;
    }
    .areas-section .container{
        padding: 0 200px;
    }
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    .about-section .container{
        padding: 0 100px;
    }
    .footer-bottom .container{
        padding: 0 100px;
    }
    .footer .container{
        padding: 0 100px;
    }
    .info-section .container{
        padding: 100px 100px;
    }
    .case-law-section .container{
        padding: 0 100px;
    }
    .events-section .container{
        padding: 0 100px;
    }
    .areas-section .container{
        padding: 0 100px;
    }
}


.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.made-by {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.made-by svg {
    height: 100px;
    width: auto;
}

@media (max-width: 1440px) {
    .footer .container,
    .footer-bottom .container {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    .footer .container,
    .footer-bottom .container {
        padding: 0 150px;
    }
    
    .footer-content {
        gap: 3rem;
    }

    .footer-logo img {
        width: 300px;
    }
}

@media (max-width: 1024px) {
    .footer {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .footer-info {
        text-align: left;
    }

    .footer .container,
    .footer-bottom .container {
        padding: 0 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .scroll-to-top {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer .container,
    .footer-bottom .container {
        padding: 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        grid-template-rows: 2fr;
        gap: 2rem;
        text-align: left;
    }
    
    .nav-column {
        text-align: left;
    }
    
    .scroll-to-top {
        justify-self: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0 0;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .footer .container,
    .footer-bottom .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-left {
        gap: 1rem;
    }
    
    .footer-info h4 {
        font-size: 1rem;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }
    
    .nav-column a {
        font-size: 0.85rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .footer .container,
    .footer-bottom .container {
        padding: 0 1rem;
    }
    
    .footer-info h4 {
        font-size: 0.95rem;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    .nav-column a {
        font-size: 0.8rem;
    }
}

/* Enhanced Animations */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes waveFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes waveFlowSecondary {
    0% { transform: translateX(-100%) scaleX(1.1); }
    100% { transform: translateX(0) scaleX(1); }
}

/* Header enhancements */
nav {
    transition: all 0.3s ease;
}

nav ul li {
    animation: slideInFromRight 0.6s ease forwards;
    opacity: 0;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }
nav ul li:nth-child(5) { animation-delay: 0.5s; }
nav ul li:nth-child(6) { animation-delay: 0.6s; }

.cta-button {
    animation: slideInFromRight 0.6s ease 0.7s forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.3);
}

.hero-cta-button {
    position: relative;
    overflow: hidden;
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
}

.hero-dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
    transform: scale(1.3);
}

/* Stats section enhancements */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Areas section enhancements */
.area-item {
    position: relative;
    overflow: hidden;
}

.area-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--areas-of-work-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.area-row.expanded .area-item::before,
.area-item.mobile-expanded::before {
    transform: translateX(0);
}

.area-header h3 {
    transition: all 0.3s ease;
}

.area-row.expanded .area-header h3,
.area-item.mobile-expanded .area-header h3 {
    transform: translateX(5px);
}

.area-content li {
    position: relative;
    padding-left: 1.5rem;
}

.area-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.area-row.expanded .area-content li::before,
.area-item.mobile-expanded .area-content li::before {
    color: var(--areas-of-work-color);
    transform: scale(1.2);
}

/* Events section enhancements */
.event-card {
    position: relative;
    overflow: hidden;
}



.event-card:hover::before {
    transform: translateX(0);
}

.event-date {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-date {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.7);
}

.event-status span {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card:hover .status-completed {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

/* Event More Button */
.event-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.event-more-btn:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}

.event-more-btn i {
    transition: transform 0.3s ease;
}

.event-more-btn:hover i {
    transform: translateX(3px);
}

/* Update Event Content to use flexbox */
.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Event Status Badge */
.event-status {
    display: flex;
    align-items: center;
}

.event-status span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: #4CAF50;
    color: white;
}

.status-upcoming {
    background: #FFA726;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .event-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .event-more-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Case law section enhancements */
.case-law-item {
    position: relative;
}

.case-law-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--new-case-law-color);
    transition: width 0.5s ease;
}

.case-law-item:hover::after {
    width: 100%;
}

.case-meta .author {
    transition: all 0.3s ease;
}

.case-law-item:hover .case-meta .author {
    color: var(--new-case-law-color);
    transform: translateX(3px);
}

/* Info section enhancements */
.info-column {
        justify-self: center;
    position: relative;
}

.info-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.3);
    transition: width 1s ease 0.5s;
}

.meeting-btn {
    position: relative;
    overflow: hidden;
}

.meeting-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.meeting-btn:hover::before {
    left: 100%;
}

/* Footer enhancements */
.footer-content {
    opacity: 0;
    animation: slideInFromLeft 1s ease 0.3s forwards;
}

.footer-logo img {
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.02);
}

.nav-column a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-column a:hover::after {
    width: 100%;
}

.scroll-to-top {
    animation: subtleFloat 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.1);
}


/* Enhanced dripping effect with many more drips */

.about-section {
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 3;
}

.dripping-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.drip {
    position: absolute;
    background: linear-gradient(to bottom, transparent 0%, #1a73e81f 50%, #1a73e859 100%);
    border-radius: 0 0 50% 50%;
    animation: drip-fall linear infinite;
    opacity: 0;
}

/* First row of drips */
.drip:nth-child(1) {
    left: 5%;
    width: 2px;
    height: 90px;
    animation-duration: 3.2s;
    animation-delay: 0s;
}

.drip:nth-child(2) {
    left: 12%;
    width: 3px;
    height: 110px;
    animation-duration: 4.1s;
    animation-delay: 0.8s;
}

.drip:nth-child(3) {
    left: 18%;
    width: 2px;
    height: 85px;
    animation-duration: 3.7s;
    animation-delay: 1.5s;
}

.drip:nth-child(4) {
    left: 25%;
    width: 4px;
    height: 130px;
    animation-duration: 4.3s;
    animation-delay: 0.3s;
}

.drip:nth-child(5) {
    left: 32%;
    width: 2px;
    height: 95px;
    animation-duration: 3.9s;
    animation-delay: 2.1s;
}

.drip:nth-child(6) {
    left: 38%;
    width: 3px;
    height: 105px;
    animation-duration: 3.5s;
    animation-delay: 1.2s;
}

.drip:nth-child(7) {
    left: 45%;
    width: 2px;
    height: 80px;
    animation-duration: 4.0s;
    animation-delay: 2.8s;
}

.drip:nth-child(8) {
    left: 52%;
    width: 4px;
    height: 120px;
    animation-duration: 3.8s;
    animation-delay: 0.6s;
}

.drip:nth-child(9) {
    left: 58%;
    width: 2px;
    height: 100px;
    animation-duration: 4.2s;
    animation-delay: 1.9s;
}

.drip:nth-child(10) {
    left: 65%;
    width: 3px;
    height: 115px;
    animation-duration: 3.6s;
    animation-delay: 0.4s;
}

.drip:nth-child(11) {
    left: 72%;
    width: 2px;
    height: 88px;
    animation-duration: 4.1s;
    animation-delay: 2.5s;
}

.drip:nth-child(12) {
    left: 78%;
    width: 3px;
    height: 98px;
    animation-duration: 3.4s;
    animation-delay: 1.7s;
}

.drip:nth-child(13) {
    left: 85%;
    width: 2px;
    height: 92px;
    animation-duration: 3.9s;
    animation-delay: 0.9s;
}

.drip:nth-child(14) {
    left: 92%;
    width: 4px;
    height: 125px;
    animation-duration: 4.4s;
    animation-delay: 2.3s;
}

.drip:nth-child(15) {
    left: 97%;
    width: 2px;
    height: 85px;
    animation-duration: 3.7s;
    animation-delay: 1.4s;
}

/* Second row of drips - offset positions */
.drip:nth-child(16) {
    left: 8%;
    width: 3px;
    height: 108px;
    animation-duration: 4.0s;
    animation-delay: 3.2s;
}

.drip:nth-child(17) {
    left: 15%;
    width: 2px;
    height: 87px;
    animation-duration: 3.6s;
    animation-delay: 4.1s;
}

.drip:nth-child(18) {
    left: 22%;
    width: 4px;
    height: 135px;
    animation-duration: 4.5s;
    animation-delay: 3.8s;
}

.drip:nth-child(19) {
    left: 29%;
    width: 2px;
    height: 93px;
    animation-duration: 3.8s;
    animation-delay: 4.7s;
}

.drip:nth-child(20) {
    left: 36%;
    width: 3px;
    height: 102px;
    animation-duration: 4.2s;
    animation-delay: 3.5s;
}

/* Modified drips 21-40 - 10 on left (0-22%), 10 on right (78-100%) */

/* Left side drips (21-30) */
.drip:nth-child(21) {
    left: 3%;
    width: 2px;
    height: 89px;
    animation-duration: 3.7s;
    animation-delay: 5.4s;
}

.drip:nth-child(22) {
    left: 8%;
    width: 3px;
    height: 118px;
    animation-duration: 4.1s;
    animation-delay: 3.9s;
}

.drip:nth-child(23) {
    left: 12%;
    width: 2px;
    height: 84px;
    animation-duration: 3.5s;
    animation-delay: 1.6s;
}

.drip:nth-child(24) {
    left: 16%;
    width: 4px;
    height: 128px;
    animation-duration: 4.3s;
    animation-delay: 2.3s;
}

.drip:nth-child(25) {
    left: 5%;
    width: 2px;
    height: 96px;
    animation-duration: 3.9s;
    animation-delay: 3.2s;
}

.drip:nth-child(26) {
    left: 19%;
    width: 3px;
    height: 106px;
    animation-duration: 4.0s;
    animation-delay: 4.7s;
}

.drip:nth-child(27) {
    left: 10%;
    width: 2px;
    height: 91px;
    animation-duration: 3.6s;
    animation-delay: 1.5s;
}

.drip:nth-child(28) {
    left: 22%;
    width: 3px;
    height: 112px;
    animation-duration: 4.2s;
    animation-delay: 5.6s;
}

.drip:nth-child(29) {
    left: 6%;
    width: 2px;
    height: 88px;
    animation-duration: 3.8s;
    animation-delay: 1.3s;
}

.drip:nth-child(30) {
    left: 14%;
    width: 4px;
    height: 122px;
    animation-duration: 4.4s;
    animation-delay: 4.0s;
}

/* Right side drips (31-40) */
.drip:nth-child(31) {
    left: 78%;
    width: 2px;
    height: 94px;
    animation-duration: 3.7s;
    animation-delay: 4.2s;
}

.drip:nth-child(32) {
    left: 82%;
    width: 3px;
    height: 109px;
    animation-duration: 4.1s;
    animation-delay: 3.8s;
}

.drip:nth-child(33) {
    left: 86%;
    width: 2px;
    height: 86px;
    animation-duration: 3.5s;
    animation-delay: 6.1s;
}

.drip:nth-child(34) {
    left: 90%;
    width: 4px;
    height: 132px;
    animation-duration: 4.6s;
    animation-delay: 2.5s;
}

.drip:nth-child(35) {
    left: 80%;
    width: 2px;
    height: 97px;
    animation-duration: 3.9s;
    animation-delay: 1.4s;
}

.drip:nth-child(36) {
    left: 94%;
    width: 3px;
    height: 104px;
    animation-duration: 4.0s;
    animation-delay: 5.7s;
}

.drip:nth-child(37) {
    left: 84%;
    width: 2px;
    height: 90px;
    animation-duration: 3.6s;
    animation-delay: 3.3s;
}

.drip:nth-child(38) {
    left: 97%;
    width: 3px;
    height: 116px;
    animation-duration: 4.3s;
    animation-delay: 6.9s;
}

.drip:nth-child(39) {
    left: 88%;
    width: 2px;
    height: 85px;
    animation-duration: 3.8s;
    animation-delay: 3.6s;
}

.drip:nth-child(40) {
    left: 92%;
    width: 4px;
    height: 127px;
    animation-duration: 4.2s;
    animation-delay: 5.4s;
}

.drip:nth-child(41) {
    left: 77%;
    width: 2px;
    height: 99px;
    animation-duration: 3.7s;
    animation-delay: 6.2s;
}

.drip:nth-child(42) {
    left: 84%;
    width: 3px;
    height: 107px;
    animation-duration: 4.1s;
    animation-delay: 5.6s;
}

.drip:nth-child(43) {
    left: 90%;
    width: 2px;
    height: 89px;
    animation-duration: 3.5s;
    animation-delay: 6.5s;
}

.drip:nth-child(44) {
    left: 96%;
    width: 3px;
    height: 113px;
    animation-duration: 4.4s;
    animation-delay: 5.8s;
}

.drip:nth-child(45) {
    left: 6%;
    width: 2px;
    height: 92px;
    animation-duration: 3.9s;
    animation-delay: 6.1s;
}

/* Fourth row - filling in gaps */
.drip:nth-child(46) {
    left: 13%;
    width: 3px;
    height: 101px;
    animation-duration: 4.0s;
    animation-delay: 7.2s;
}

.drip:nth-child(47) {
    left: 20%;
    width: 2px;
    height: 87px;
    animation-duration: 3.6s;
    animation-delay: 7.8s;
}

.drip:nth-child(48) {
    left: 27%;
    width: 4px;
    height: 124px;
    animation-duration: 4.5s;
    animation-delay: 7.4s;
}

.drip:nth-child(49) {
    left: 34%;
    width: 2px;
    height: 95px;
    animation-duration: 3.8s;
    animation-delay: 7.9s;
}

.drip:nth-child(50) {
    left: 41%;
    width: 3px;
    height: 110px;
    animation-duration: 4.2s;
    animation-delay: 7.1s;
}

@keyframes drip-fall {
    0% {
        top: -100px;
        opacity: 0;
        transform: scaleY(0);
    }
    10% {
        opacity: 1;
        transform: scaleY(0.5);
    }
    90% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: scaleY(1);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    /* Hide some drips on smaller screens to maintain performance */
    .drip:nth-child(n+41) {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Further reduce drips on mobile */
    .drip:nth-child(n+31) {
        display: none;
    }
    
    .drip {
        animation-duration: 2.5s !important;
    }
}

@media (max-width: 480px) {
    /* Even fewer drips on very small screens */
    .drip:nth-child(n+21) {
        display: none;
    }
    
    .drip {
        width: 2px !important;
        height: 80px !important;
    }
}

.area-item {
    position: relative;
    z-index: 0;
}

.area-row.expanded .area-item::after,
.area-item.mobile-expanded::after {
    top: 0px;
    left: 0px;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 3px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
    border-image: linear-gradient(
        to right,
        #2e7d32,
        #388e3c,
        #4CAF50,
        #66bb6a,
        #a5d6a7
    ) 1;
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
    animation: borderTrail 4s linear infinite;
}

@media (hover: hover) {
    .area-row:hover .area-item::after {
        top: 0px;
        left: 0px;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        border: 3px solid transparent;
        box-sizing: border-box;
        pointer-events: none;
        z-index: 3;
        border-image: linear-gradient(
            to right,
            #2e7d32,
            #388e3c,
            #4CAF50,
            #66bb6a,
            #a5d6a7
        ) 1;
        clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
        animation: borderTrail 4s linear infinite;
    }
}

@keyframes borderTrail {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
    }
    25% {
        clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
    }
    50% {
        clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
    }
}

.events-section {
    background-attachment: fixed;
    background-size: 120% 120%;
    background-position: center center;
    transition: background-position 0.1s ease-out;
    will-change: background-position;
}

@media (max-width: 768px) {
    .events-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}



/* Large screens (2K and above) */
@media (min-width: 2560px) {
    .about-section .container,
    .areas-section .container,
    .events-section .container,
    .case-law-section .container,
    .info-section .container,
    .footer .container,
    .footer-bottom .container {
        padding: 0 600px;
    }

    .hero-content-wrapper {
        padding: 50px 450px;
    }

    .hero-text p {
        font-size: 1.5rem;
        line-height: 1.7;
    }
    
    p {
        font-size: 1.4rem;
        line-height: 1.7;
    }
    
    .about-description {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    .stat-description {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .case-content p {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    .event-content p {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .area-content li {
        font-size: 1.2rem;
        line-height: 1.6;
    }
}

/* QHD/1440p screens */
@media (min-width: 1920px) and (max-width: 2559px) {
    .about-section .container,
    .areas-section .container,
    .events-section .container,
    .case-law-section .container,
    .info-section .container,
    .footer .container,
    .footer-bottom .container {
        padding: 0 250px;
    }
    
    p {
        font-size: 1.15rem;
        line-height: 1.65;
    }

    .hero-text p {
        font-size: 1.5rem;
        line-height: 1.7;
    }


    
    .about-description {
        font-size: 1.25rem;
        line-height: 1.8;
    }
    
    .case-content p {
        font-size: 1.05rem;
        line-height: 1.65;
    }
    
    .event-content p {
        font-size: 1.05rem;
        line-height: 1.55;
    }
    
    .area-content li {
        font-size: 1.05rem;
        line-height: 1.55;
    }
}

/* Full HD/1080p screens */
@media (min-width: 1600px) and (max-width: 1919px) {
    .about-section .container,
    .areas-section .container,
    .events-section .container,
    .case-law-section .container,
    .info-section .container,
    .footer .container,
    .footer-bottom .container {
        padding: 0 100px;
    }
    
    p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .about-description {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .case-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .event-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .area-content li {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Replace the existing hero overlay styles with these gradient versions */


.hero-media[data-type="video"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.3) 0%,     /* Dark on the left where text is */
        rgba(0,0,0,0.2) 40%,    /* Medium darkness */
        rgba(0,0,0,0.1) 70%,    /* Light darkness */
        rgba(0,0,0,0) 100%    /* Very light on the right */
    );
    pointer-events: none;
    z-index: 1;
}



.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.6) 0%,     /* Dark on the left where text is */
        rgba(0,0,0,0.4) 40%,    /* Medium darkness */
        rgba(0,0,0,0.2) 70%,    /* Light darkness */
        rgba(0,0,0,0.05) 100%   /* Very light on the right */
    );
    pointer-events: none;
    z-index: 1;
}

/* Special case for the first hero image (if it needs to be darker) */
.hero-image:first-child::after {
    background: linear-gradient(to right, 
        rgba(0,0,0,0.8) 0%,     /* Darker on the left where text is */
        rgba(0,0,0,0.6) 50%,    /* Medium darkness */
        rgba(0,0,0,0.3) 70%,    /* Light darkness */
        rgba(0,0,0,0.1) 100%    /* Very light on the right */
    );
}

.hero-image:nth-child(2)::after {
    background: linear-gradient(to right, 
        rgba(0,0,0,0.8) 0%,     /* Darker on the left where text is */
        rgba(0,0,0,0.6) 50%,    /* Medium darkness */
        rgba(0,0,0,0.3) 70%,    /* Light darkness */
        rgba(0,0,0,0.1) 100%    /* Very light on the right */
    );
}

/* Special case for hero3.jpg (if it needs different treatment) */
.hero-image[style*="hero3.jpg"]::after {
    background: linear-gradient(to right, 
        rgba(0,0,0,0.6) 0%,     /* Dark on the left where text is */
        rgba(0,0,0,0.4) 40%,    /* Medium darkness */
        rgba(0,0,0,0.2) 70%,    /* Light darkness */
        rgba(0,0,0,0.05) 100%   /* Very light on the right */
    );
}

.hero-image[style*="hero2.jpg"]::after {
    background: linear-gradient(to right, 
        rgba(0,0,0,0.4) 0%,     /* Dark on the left where text is */
        rgba(0,0,0,0.3) 20%,    /* Medium darkness */
        rgba(0,0,0,0.2) 70%,    /* Light darkness */
        rgba(0,0,0,0.05) 100%   /* Very light on the right */
    );
}

.hero-image[style*="heroArchive1.jpeg"]::after {
    background: rgba(0, 0, 0, 0.3);
}

.hero-image[style*="heroArchive2.jpeg"]::after {
    background: rgba(0, 0, 0, 0.1);
}


/* Keep smaller screens with uniform dimming as they were */
@media (max-width: 1024px) {
    .hero-media[data-type="video"]::after {
        background: rgba(0,0,0,0.4);
    }
    
    .hero-image::after, .hero-image:nth-child(2)::after, .hero-image[style*="hero3.jpg"]::after {
        background: rgba(0, 0, 0, 0.55);
    }

    .hero-image[style*="hero2.jpg"]::after {
        background: rgba(0, 0, 0, 0.10);
    }

    .hero-image:first-child::after {
        background: rgba(0,0,0,0.5);
    }

    .hero-image[style*="hero1.jpg"]::after {
        background: rgba(0, 0, 0, 0.65);
    }

    .hero-image[style*="hero4.png"]::after {
        background: rgba(0, 0, 0, 0.7);
    }

    .hero-image[style*="heroArchive2.jpeg"] {
        background-position: 30% center;
    }
}



/* Hero Navigation Circles - Add this to your CSS */

.hero-nav-circles {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-nav-circles:hover {
    background: rgba(237, 28, 36, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.3);
}

.hero-nav-circles i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.hero-nav-circles:hover i {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-nav-left {
    left: 10px;
}

.hero-nav-right {
    right: 10px;
}

/* Responsive behavior - hide on mobile/small tablets */
@media (max-width: 1024px) {
    .hero-nav-circles {
        display: none;
    }
}

/* Optional: slightly smaller on tablets */
@media (max-width: 1200px) and (min-width: 1025px) {
    .hero-nav-circles {
        width: 50px;
        height: 50px;
    }
    
    .hero-nav-circles i {
        font-size: 18px;
    }
    
    .hero-nav-left {
        left: 20px;
    }
    
    .hero-nav-right {
        right: 20px;
    }
}

/* Animation for appearing/disappearing */
.hero-nav-circles {
    opacity: 0;
    animation: fadeInNav 0.5s ease 1s forwards;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
    }
}

/* Pulse effect on hover */
.hero-nav-circles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(237, 28, 36, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.hero-nav-circles:hover::before {
    transform: translate(-50%, -50%) scale(1.3);
}

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 8px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

@media (max-width: 480px) {
    .animated-underline::after {
        bottom: -5px;
    }
}

.animated-underline.animate-in::after {
    width: 100%;
}