/* ===================================
   TPP2.MN - Main Stylesheet
   Version: 1.0
   =================================== */

/* ===================================
   1. CSS Variables & Root
   =================================== */
:root {
    --primary-color: #1E398D;
    --secondary-color: #00d4ff;
    --dark-blue: #00026f;
    --light-blue: #22248b;
    --accent-yellow: #fff200;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===================================
   2. Base Styles
   =================================== */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

img, iframe{
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* ===================================
   3. Header Styles
   =================================== */

/* Top Bar */
.top-header {
    background-color: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.top-header .contact-info {
    color: var(--text-light);
}

.top-header .contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-header .social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    margin: 0 3px;
    transition: var(--transition);
}

.top-header .social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Section */
.header-logo {
    background: white;
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.header-logo img {
    max-height: 80px;
    transition: var(--transition);
}

.header-logo img:hover {
    transform: scale(1.02);
}

/* Navigation */
.main-navigation {
    background: var(--primary-color);
    padding: 10px 0;
}

.main-navigation .navbar-brand {
    background: white;
    padding: 8px 15px;
    border-radius: 5px;
}

.main-navigation .navbar-nav .nav-link {
    color: white;
}

.main-navigation .navbar-toggler {
    border: 2px solid white;
    padding: 5px 8px;
}

.main-navigation .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
}

/* Navigation Dropdown */
.navbar-nav .dropdown-menu {
    display: none;
}

.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.navbar-nav .dropdown-submenu {
    position: relative;
}

.navbar-nav .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Submenu arrow pointing right */
.navbar-nav .dropdown-submenu > .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav .dropdown-submenu > .dropdown-toggle::after {
    transform: rotate(-90deg);
    margin-left: 10px;
}

/* Dropdown items single line */
.navbar-nav .dropdown-item {
    white-space: nowrap;
}

/* News Ticker */
.news-ticker {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.ticker-label {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

/* ===================================
   4. Hero Statistics Section
   =================================== */
.hero-statistics-section {
    background: url('/images/hero-bg.png') bottom no-repeat;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-statistics-section .container {
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(30, 57, 141, 0.3);
}

.stat-icon img {
    max-width: 50px;
    filter: brightness(0) invert(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Hero Text Styling */
.hero-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.6;
}

.hero-text .counter {
    font-size: 2.5rem;
}

/* Hero Image Styling */
.hero-image {
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.05);
}

/* Service Section */
.service-section {
    background: white;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    min-width: 180px;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    width: 120px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem 1rem;
        min-width: auto;
        width: 100%;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-text {
        font-size: 0.85rem;
        width: 100%;
    }
}

/* Hero News Section */
.hero-news-section {
    background: #f8f9fa;
    padding-bottom: 80px !important;
}

.hero-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

.hero-news-content {
    padding: 1.5rem;
    flex: 1;
}

.hero-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hero-news-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.heroNewsSwiper .swiper-button-next,
.heroNewsSwiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.heroNewsSwiper .swiper-button-next:hover,
.heroNewsSwiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.heroNewsSwiper .swiper-button-next:after,
.heroNewsSwiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.heroNewsSwiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 30px;
}

.heroNewsSwiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.heroNewsSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Swiper Customization */
.heroStatsSwiper .swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.heroStatsSwiper .swiper-button-next,
.heroStatsSwiper .swiper-button-prev {
    position: static;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.heroStatsSwiper .swiper-button-next:hover,
.heroStatsSwiper .swiper-button-prev:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.heroStatsSwiper .swiper-button-next:after,
.heroStatsSwiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.heroStatsSwiper .swiper-pagination {
    position: static;
    width: auto;
}

.heroStatsSwiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.heroStatsSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* ===================================
   5. Content Sections
   =================================== */
.welcome-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

/* Centered section title with divider below */
.section-title.centered {
    text-align: center;
    padding-bottom: 15px;
}

.section-title.centered::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Left section title with divider before */
.section-title.left {
    padding-left: 100px;
}

.section-title.left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Feature Swiper */
.featureSwiper {
    max-width: 400px;
    margin: 0 auto;
}

.feature-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.feature-icon-simple {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-simple img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-title-simple {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.feature-next,
.feature-prev {
    color: var(--primary-color);
}

.feature-pagination {
    margin-top: 20px;
}

.director-message .message-content {
    gap: 20px;
}

.director-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    float: left;
    margin-right: 15px;
}

.message-text {
    flex: 1;
    text-align: left;
}

/* Magazine Section */
.magazine-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.magazine-section.facebook-section {
    height: auto;
}

.magazine-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.magazine-section .section-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.magazine-section .section-header h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* Video Widget */
.video-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card .news-image {
    height: 200px;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-card .news-content {
    padding: 20px;
}

.news-card .news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card .news-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: white;
}

.partner-item {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: var(--transition);
}

.partner-item img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===================================
   6. Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-heading i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.footer-heading h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact .contact-item i {
    margin-top: 3px;
    color: var(--secondary-color);
}

.footer-social-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-grid-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.social-grid-item i {
    font-size: 1.4rem;
}

.social-grid-item span {
    display: none;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-stat-item i {
    color: var(--secondary-color);
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.copyright-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
#scroll-top {
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top[style*="display: flex"] {
    opacity: 1;
}

#scroll-top:hover {
    transform: translateY(-5px);
}

/* News List Section */
.news-list {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.news-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.news-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.news-item-modern {
    margin-bottom: 20px;
}

.news-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.news-link:hover {
    transform: translateX(5px);
}

.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-link:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link:hover .news-title {
    color: var(--primary-color);
}

.news-more {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-more i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-more:hover i {
    transform: translateX(3px);
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.post-card-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.post-image {
    flex-shrink: 0;
    width: 45%;
    overflow: hidden;
}

.post-image a {
    display: block;
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 250px;
}

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

.post-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    flex: 1;
    margin-bottom: 20px;
}

.post-excerpt p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9rem;
}

.post-date i {
    color: var(--secondary-color);
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-read-more:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(3px);
}

.post-read-more i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.post-read-more:hover i {
    transform: translateX(3px);
}

/* Download Widget */
.download-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.download-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.download-item i {
    font-size: 1.3rem;
    color: #dc3545;
    transition: var(--transition);
}

.download-item:hover i {
    color: white;
}

.download-item span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: var(--border-color);
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .post-card-inner {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
    }

    .post-image img {
        min-height: 200px;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* DataTables Styling */
.dataTables_wrapper {
    padding: 20px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 15px;
    color: #666;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 20px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 3px;
    border: none !important;
    border-radius: 6px;
    background: transparent !important;
    color: #666 !important;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f5f5f5 !important;
    color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    background: transparent !important;
    color: #666 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background: #f5f5f5 !important;
    color: var(--primary-color) !important;
}

/* Remove Bootstrap's conflicting pagination styles for DataTables */
.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .page-item {
    border: none;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border: none;
}

#iltodTable {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#iltodTable thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    border: none;
    white-space: nowrap;
}

#iltodTable tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

#iltodTable tbody tr:hover {
    background: #f8f9fa;
}

#iltodTable tbody td a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

#iltodTable tbody td a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Legal Categories */
.legal-categories {
    margin-bottom: 40px;
}

.org-category-box {
    position: relative;
    margin: 0 0 20px 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 25px;
    transition: var(--transition);
}

.org-category-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.org-category-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
}

.org-category-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.org-category-box ul li {
    margin-bottom: 10px;
}

.org-category-box ul li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
}

.org-category-box ul li a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 18px;
}

.org-category-box ul li a.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Post Detail Page */
.post-detail {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.post-detail-header {
    margin-bottom: 30px;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-detail-date,
.post-detail-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.95rem;
}

.post-detail-date i,
.post-detail-views i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.post-detail-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.post-detail-content p {
    margin-bottom: 1.2rem;
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.post-detail-content li {
    margin-bottom: 0.5rem;
}

.post-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.post-detail-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.post-detail-content table th,
.post-detail-content table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-detail-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .post-detail {
        padding: 25px;
    }

    .post-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Huuli Table */
#huuliTable {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#huuliTable thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    border: none;
    white-space: nowrap;
}

#huuliTable tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

#huuliTable tbody tr:hover {
    background: #f8f9fa;
}

#huuliTable tbody td a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

#huuliTable tbody td a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Page */
.contact-page .contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-page .contact-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-page .contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-page .contact-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.contact-page .contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: white;
}

.contact-page .contact-icon i {
    font-size: 1.5rem;
}

.contact-page .contact-details {
    flex: 1;
}

.contact-page .contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.contact-page .contact-details p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.contact-page .contact-details a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.contact-page .contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-page .contact-map {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 600px;
}

.contact-page .contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page .contact-card {
        padding: 25px;
        margin-bottom: 30px;
    }

    .contact-page .contact-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .contact-page .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-page .contact-icon i {
        font-size: 1.2rem;
    }

    .contact-page .contact-map {
        min-height: 400px;
    }

    .contact-page .contact-map iframe {
        min-height: 360px;
    }
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-header-content {
    position: relative;
    padding: 80px 0 60px;
}

.page-header-content .container {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header .featured-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover !important;
    opacity: 0.15;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* Sidebar Menu Widget */
.services-menu-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.service-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-menu li {
    margin-bottom: 12px;
}

.service-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.service-menu li a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 20px;
}

.service-menu li a i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-menu li a:hover i {
    color: white;
}

/* ===================================
   7. Responsive Styles
   =================================== */
@media (max-width: 992px) {
    .main-navigation .nav-link {
        padding: 15px 10px;
        font-size: 13px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .header-logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 5px 0;
    }

    .top-header .contact-info {
    }

    .top-header .social-links a {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 9px;
        margin: 0 2px;
    }

    .top-header form {
        display: none !important;
    }

    .hero-statistics-section {
        padding: 40px 0;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .news-card .news-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .top-header {
        padding: 4px 0;
    }

    .top-header .contact-info {
    }

    .top-header .social-links a {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 8px;
        margin: 0 1px;
    }

    .header-logo {
        padding: 6px 0;
    }

    .header-logo img {
        max-height: 30px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon img {
        max-width: 35px;
    }

    .stat-title {
        font-size: 1rem;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

/* ===================================
   8. Utility Classes
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ===================================
   9. Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease;
}

/* ===================================
   10. Print Styles
   =================================== */
@media print {
    .top-header,
    .main-navigation,
    .news-ticker,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        color: black;
        text-decoration: none;
    }
}