:root {
    --primary-orange: #FF901D;
    --secondary-orange: #ffab4d;
    --dark-orange: #e67e00;
    --light-orange: #fff4e6;
    --text-color: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --gray-bg: #f8f9fa;
    --dark-gray: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-gray);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-orange);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 10px 0;
    border-top: 3px solid var(--primary-orange);
    z-index: 1001;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
}

.dropdown-content li a:hover {
    background: var(--light-orange);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section (Swiper) */
.hero-swiper {
    width: 100%;
    height: 70vh;
}

.swiper-slide {
    position: relative;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.swiper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Inner Page Banners */
.inner-banner {
    height: 300px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 144, 29, 0.65);
}

.inner-banner-content {
    position: relative;
    z-index: 1;
}

.inner-banner h1 {
    font-size: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

.section-title p {
    color: #666;
    margin-top: 15px;
}

/* Intro Section */
.intro-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content {
    flex: 1;
}

.intro-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.intro-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
    margin-top: 40px;
}
.about-grid .grid-item {
    overflow: hidden;
    border-radius: 8px;
}
.about-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.about-grid .grid-item:hover img {
    transform: scale(1.05);
}
.about-grid .grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* News Block (Homepage) */
.news-block-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-featured {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-featured img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-featured-info {
    padding: 20px;
}

.news-featured-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-list-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-list-item a:hover {
    color: var(--primary-orange);
}

.news-list-item .date {
    font-size: 0.85rem;
    color: #999;
}

/* Card Styles */
.card, .image-container {
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
    background: var(--white);
}

.card:hover, .image-container:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card img, .image-container img {
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover img, .image-container:hover img {
    transform: scale(1.1);
}

/* Floating Contact Widget */
.floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.m-text {
    display: none;
}

.contact-icon {
    background: var(--primary-orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.contact-text {
    background: var(--primary-orange);
    color: var(--white);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    margin-right: -50px;
    z-index: 1;
}

.contact-item:hover .contact-text {
    transform: translateX(0);
    opacity: 1;
    margin-right: 0;
}

.contact-item:hover .contact-icon {
    background: var(--dark-orange);
}

.contact-item.back-to-top .contact-icon {
    background: #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideDown 0.4s ease;
}

@keyframes modalSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: var(--primary-orange);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 10px;
}
.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.page-item:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}
.page-item.active {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}
.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}
.page-item.prev-next {
    width: auto;
    padding: 0 15px;
}

/* News Classes */
.news-card {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.news-card-img {
    width: 300px;
    flex-shrink: 0;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-content {
    padding: 30px;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .intro-container {
        flex-direction: column;
    }
    .news-block-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        min-width: 100%;
        background: transparent;
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* Mobile Bottom Contact Bar */
    .floating-contact {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 8px 0;
        justify-content: space-around;
        gap: 0;
    }

    .contact-item {
        flex-direction: column;
        flex: 1;
        border-right: 1px solid #eee;
        justify-content: center;
    }

    .contact-item:nth-child(3) { 
        border-right: none;
    }

    .contact-icon {
        width: auto;
        height: auto;
        background: transparent;
        color: var(--primary-orange);
        font-size: 1.4rem;
        margin-bottom: 4px;
        z-index: 1;
    }

    .contact-item:hover .contact-icon {
        background: transparent;
        color: var(--dark-orange);
    }

    .contact-text {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
        background: transparent;
        color: var(--dark-gray);
        height: auto;
        padding: 0;
        margin: 0;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .d-text { display: none; }
    .m-text { display: inline; }

    /* Separate Back to Top button on mobile */
    .contact-item.back-to-top {
        position: fixed;
        right: 15px;
        bottom: 75px; 
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(0,0,0,0.6);
        border: none;
        flex: none;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .contact-item.back-to-top .contact-icon {
        color: var(--white);
        margin: 0;
        font-size: 1.2rem;
    }

    .contact-item.back-to-top .contact-text {
        display: none;
    }

    body {
        padding-bottom: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .about-grid .grid-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
    .about-grid .grid-item {
        height: 200px;
    }

    .news-card {
        flex-direction: column;
    }
    .news-card-img {
        width: 100%;
        height: 200px;
    }
    .news-card-content {
        padding: 20px;
    }

    .article-content {
        padding: 20px;
    }
}
