/**
 * Homepage Styles for Judiciary of Eswatini
 * Features glassmorphism effects, animations, and responsive design
 */

/* ===== Hero Slider Styles ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--primary-blue);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* Individual slide backgrounds */
.hero-slide[data-slide="justice"] {
    background-image: url('../images/commercial.jpg');
}

.hero-slide[data-slide="services"] {
    background-image: url('../images/high_court.png');
}

.hero-slide[data-slide="independence"] {
    background-image: url('../images/manzini.jpg');
}

.hero-slide[data-slide="modern"] {
    background-image: url('../images/seacj.jpg');
}


.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 51, 102, 0.4) 0%,
        rgba(0, 89, 146, 0.3) 50%,
        rgba(212, 175, 55, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.7s forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-actions .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    min-width: 160px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ===== Welcome Section ===== */
.welcome-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.welcome-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.welcome-content {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s ease forwards;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.welcome-image {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease 0.3s forwards;
}

.welcome-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
}

/* ===== Quick Access Section ===== */
.quick-access-section {
    padding: 5rem 0;
    background: white;
}

.quick-access-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.quick-access-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.quick-access-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quick-access-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.quick-access-card:nth-child(1) { animation-delay: 0.1s; }
.quick-access-card:nth-child(2) { animation-delay: 0.2s; }
.quick-access-card:nth-child(3) { animation-delay: 0.3s; }
.quick-access-card:nth-child(4) { animation-delay: 0.4s; }

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-access-card:hover::before {
    left: 100%;
}

.quick-access-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.quick-access-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.quick-access-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.quick-access-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-access-description {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== Judicial Independence Section ===== */
.independence-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
}

.independence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.independence-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.independence-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.independence-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
    font-weight: 500;
}

.independence-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--dark-gray);
    margin: 2rem 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.independence-quote::before,
.independence-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--gold);
    position: absolute;
    top: -10px;
}

.independence-quote::before {
    left: -20px;
}

.independence-quote::after {
    right: -20px;
}

.independence-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.independence-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.pillar-card:nth-child(1) { animation-delay: 0.1s; }
.pillar-card:nth-child(2) { animation-delay: 0.2s; }
.pillar-card:nth-child(3) { animation-delay: 0.3s; }
.pillar-card:nth-child(4) { animation-delay: 0.4s; }
.pillar-card:nth-child(5) { animation-delay: 0.5s; }

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.pillar-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== Court Services Section ===== */
.services-section {
    padding: 5rem 0;
    background: white;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== Values Section ===== */
.values-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--primary-blue) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.values-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.values-header {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.values-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.values-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.values-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.decor-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    opacity: 0;
    animation: fadeInWidth 1s ease 1s forwards;
}

.decor-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
    opacity: 0;
    animation: fadeInScale 1s ease 1.2s forwards;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: fadeInUpScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.value-card:nth-child(1) { animation-delay: 0.4s; }
.value-card:nth-child(2) { animation-delay: 0.6s; }
.value-card:nth-child(3) { animation-delay: 0.8s; }

.value-card-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.value-card:hover .value-card-inner {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.value-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-card:hover .value-card-bg {
    opacity: 1;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gold), rgba(212, 175, 55, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.value-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.value-card:hover .value-icon::before {
    width: 100px;
    height: 100px;
}

.value-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon svg {
    transform: scale(1.1);
}

.value-content {
    position: relative;
    z-index: 2;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.value-text {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* ===== Values Stats ===== */
.values-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.5s forwards;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== Enhanced Animations ===== */
@keyframes fadeInWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Floating Animation for Value Cards ===== */
.value-card {
    animation: float 6s ease-in-out infinite;
}

.value-card:nth-child(1) {
    animation-delay: 0s;
}

.value-card:nth-child(2) {
    animation-delay: 2s;
}

.value-card:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.01);
    }
}

/* Disable floating animation on reduced motion */
@media (prefers-reduced-motion: reduce) {
    .value-card {
        animation: none;
    }
}

/* ===== News Section ===== */
.news-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.news-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.news-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.news-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-meta .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.news-date,
.news-author {
    font-weight: 500;
}

.news-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.news-card-title {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--secondary-blue);
}

.news-excerpt {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.news-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.read-more {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 89, 146, 0.1);
}

.read-more:hover {
    color: var(--primary-blue);
    background: rgba(0, 89, 146, 0.15);
    transform: translateX(3px);
}

.read-more .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more:hover .icon {
    transform: translateX(3px);
}

/* News Footer - View All Link */
.news-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.news-view-all:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.2);
}

.news-view-all .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.news-view-all:hover .icon {
    transform: scale(1.1);
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.newsletter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.newsletter-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 500px;
    }

    .welcome-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-image img {
        height: 250px;
    }

    .quick-access-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        min-width: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-input {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    /* Values Section Mobile */
    .values-title {
        font-size: 2.5rem;
    }

    .values-subtitle {
        font-size: 1.1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card-inner {
        padding: 2rem 1.5rem;
    }

    .value-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .value-icon svg {
        width: 35px;
        height: 35px;
    }

    .value-title {
        font-size: 1.3rem;
    }

    .values-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-description {
        font-size: 0.9rem;
        max-width: 400px;
    }

    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .welcome-title,
    .services-title,
    .news-title,
    .newsletter-title,
    .values-title {
        font-size: 2rem;
    }

    .independence-title {
        font-size: 2rem;
    }

    .quick-access-card,
    .service-card,
    .value-card-inner {
        padding: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .values-decor {
        gap: 0.5rem;
    }

    .decor-line {
        width: 40px;
    }

    .decor-icon {
        width: 24px;
        height: 24px;
    }

    .values-stats {
        padding: 0 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}