/* =========================================
   CONTENT & COMPONENTS (Restored & Upgraded)
   ========================================= */

/* --- Layout Containers --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    height: 450px;
    /* Fixed height for consistency */
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Hero Slider */
.hero-slider-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 100%;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    height: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-text {
    margin: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--secondary-color);
    animation: fadeInUp 0.5s ease-out;
}

.hero-text h2 {
    color: var(--primary-dark) !important;
    text-shadow: none !important;
    /* Remove old shadow */
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.hero-text p {
    color: var(--text-color) !important;
    font-size: 1.1rem !important;
    margin: 0;
}

/* --- Side Scroller (Quick Access) --- */
.hero-side-scroller {
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom Scrollbar for Scroller */
.hero-side-scroller::-webkit-scrollbar {
    width: 6px;
}

.hero-side-scroller::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.side-card {
    border-radius: 12px;
    padding: 20px;
    color: white;
    /* Default text color */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.side-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.side-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.side-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: inherit;
}

.side-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    color: inherit;
}

.side-content i {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.2;
    font-size: 3rem !important;
    transform: rotate(-15deg);
}

/* --- News Grid (Refined) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

.news-image {
    height: 200px;
    position: relative;
    background-color: #eee;
}

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

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

.news-category {
    background: rgba(74, 20, 140, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.news-read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.news-read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(74, 20, 140, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Modals and Overlays --- */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
}

.logo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.logo-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.logo-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Suggestion Modal */
.suggestion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    /* Align closer to top */
    padding-top: 50px;
}

.suggestion-modal.show {
    display: flex;
}

.suggestion-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.suggestion-header {
    background: var(--primary-dark);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.suggestion-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.suggestion-body {
    padding: 25px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Back To Top --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: var(--secondary-color);
    color: var(--primary-dark);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}