/* ========================================
   Modern Industrial Tech Theme
   Color Palette:
   - Primary Dark: #0F2B5B
   - Primary Blue: #2563EB
   - Accent Orange: #F97316
   - Neutrals: #1E293B, #64748B, #F1F5F9, #FFF
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0F2B5B;
    --primary-blue: #2563EB;
    --primary-light: #3B82F6;
    --accent-orange: #F97316;
    --accent-orange-light: #FB923C;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --gradient-primary: linear-gradient(135deg, #0F2B5B 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-hero: linear-gradient(135deg, #0F2B5B 0%, #1E40AF 50%, #2563EB 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

img {
    max-width: 100%;
    height: auto;
}

/* Loader */
.css-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.css-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Header / Navigation
   ======================================== */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 43, 91, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header.scrolled {
    background: rgba(15, 43, 91, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

header .navbar {
    padding: 15px 0 !important;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand span:first-child {
    color: var(--accent-orange) !important;
}

.navbar-brand span:last-child {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-orange) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.contact {
    font-size: 13px;
}

.contact a {
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--accent-orange) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   Hero / Banner Section (Redesigned)
   ======================================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 80%, rgba(249,115,22,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 20%, rgba(37,99,235,0.15) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 720px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-actions .btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

.hero-actions .btn-lg:hover {
    transform: translateY(-3px) scale(1.04);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255,255,255,0.3);
}

/* ========================================
   Section Common
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-light);
}

.title {
    text-align: center;
    margin-bottom: 60px;
}

.title h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.title h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.title h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.title-left {
    text-align: left;
}

.title-left h1::after {
    margin: 20px 0 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 60px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 16px;
}

.cta2 {
    background: linear-gradient(135deg, #1E40AF 0%, #0F2B5B 100%);
}

/* ========================================
   Services / Advantages Section
   ======================================== */
.services {
    background: var(--bg-light);
}

.services .media {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
}

.services .media:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.services .media img {
    width: 56px;
    height: 56px;
    margin-right: 20px;
    flex-shrink: 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(249,115,22,0.1) 100%);
    border-radius: 12px;
}

.services .media-body h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.services .media-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   Featured / About Section
   ======================================== */
.featured {
    background: #fff;
}

.featured .title {
    text-align: left;
    margin-bottom: 25px;
}

.featured .title h1::after {
    margin: 20px 0 0;
}

.featured p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
}

.media-element {
    margin: 30px 0;
    gap: 30px;
}

.media-element .media {
    display: flex;
    align-items: center;
    flex: 1;
}

.media-element .media i {
    font-size: 32px;
    color: var(--accent-orange);
    margin-right: 15px;
}

.media-element .media h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.media-element .media div:last-child {
    color: var(--text-muted);
    font-size: 14px;
}

.featured-img {
    position: relative;
    padding: 20px;
}

.featured-big {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.featured-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
}

/* ========================================
   Recent Posts / News Section
   ======================================== */
.recent-posts {
    background: var(--bg-light);
}

.single-rpost {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.single-rpost:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumb {
    width: 40%;
    flex-shrink: 0;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-rpost:hover .post-thumb img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    flex: 1;
}

.post-content time {
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--primary-dark);
}

.post-content h3 a:hover {
    color: var(--primary-blue);
}

.post-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 50%;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.post-btn:hover {
    background: var(--accent-orange);
    color: #fff;
    transform: translateX(5px);
}

/* ========================================
   Products Section / Cards
   ======================================== */
.products-section {
    padding: 80px 0;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    padding-top: 70%;
    background: var(--bg-gray);
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-card .product-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-card h3 a {
    color: inherit;
}

.product-card h3 a:hover {
    color: var(--primary-blue);
}

.product-card .product-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-card .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-card .product-model {
    font-size: 13px;
    color: var(--text-light);
}

.product-card .product-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.product-card .product-link:hover {
    color: var(--accent-orange);
}

/* Product Sidebar */
.product-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-sidebar h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-list li a:hover,
.category-list li a.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(249,115,22,0.05) 100%);
    color: var(--primary-blue);
}

.category-list .count {
    background: var(--bg-gray);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.category-list li a:hover .count,
.category-list li a.active .count {
    background: var(--primary-blue);
    color: #fff;
}

/* ========================================
   Product Detail
   ======================================== */
.product-detail-section {
    padding: 120px 0 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-gray);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.product-main-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary-blue);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.product-info .product-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
}

.product-meta-item i {
    color: var(--primary-blue);
}

.product-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-detail-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 35px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-orange);
}

.product-detail-section h3:first-of-type {
    margin-top: 0;
}

.product-detail-section .detail-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.product-detail-section .detail-content ul,
.product-detail-section .detail-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.product-detail-section .detail-content li {
    margin-bottom: 8px;
}

.product-detail-section .detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-detail-section .detail-content th,
.product-detail-section .detail-content td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.product-detail-section .detail-content th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-dark);
}

/* Related Products */
.related-products {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.related-products h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================
   Gallery Page
   ======================================== */
.page-header {
    background: var(--gradient-hero);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    justify-content: center;
    background: transparent !important;
    padding: 0;
    margin-top: 15px;
}

.breadcrumb a,
.breadcrumb span,
.breadcrumb li {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
}

.breadcrumb .active {
    color: #fff !important;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: #fff;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15,43,91,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 50px;
    gap: 8px;
}

.page-link {
    border: none;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    margin: 0 2px;
    background: #fff;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.page-item.active .page-link {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* ========================================
   About Page
   ======================================== */
.about-section {
    padding: 100px 0;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: var(--gradient-primary);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.about-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.about-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Articles / News Page
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.article-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-gray);
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-date {
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--primary-dark);
}

.article-card h3 a:hover {
    color: var(--primary-blue);
}

.article-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.article-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-card-footer a {
    font-weight: 600;
    font-size: 14px;
}

/* Article Detail */
.article-detail {
    padding: 120px 0 80px;
}

.article-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-cover {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 35px 0 15px;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 25px 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding: 100px 0;
}

.contact-info-card {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 16px;
    color: #fff;
    height: 100%;
}

.contact-info-card h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-info-card > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.contact-item h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--accent-orange-light);
}

.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-form-card > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-danger, .alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #0A1F44;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer-widgets {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.single-widget h6 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.single-widget h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.contact-widget p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-widget .media {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-widget .media i {
    color: var(--accent-orange);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.contact-widget .media h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    padding: 0;
}

.contact-widget .media h6::after {
    display: none;
}

.contact-widget .media-body {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.contact-widget .media-body a {
    color: rgba(255,255,255,0.7);
}

.contact-widget .media-body a:hover {
    color: var(--accent-orange);
}

.recent-post-widget .media {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.recent-post-widget .media-body h6 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 5px;
    padding: 0;
}

.recent-post-widget .media-body h6::after {
    display: none;
}

.recent-post-widget .media-body h6 a {
    color: rgba(255,255,255,0.85);
}

.recent-post-widget .media-body h6 a:hover {
    color: var(--accent-orange);
}

.recent-post-widget .media-body p {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin: 0;
}

.tags-widget a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 8px 10px 0;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tags-widget a:hover {
    background: var(--accent-orange);
    color: #fff;
}

.subscribe-widget p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.foot-note {
    padding: 25px 0;
    background: #071838;
}

.foot-note p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
}

.foot-note a {
    color: rgba(255,255,255,0.6);
    margin-left: 25px;
    font-size: 13px;
}

.foot-note a:hover {
    color: var(--accent-orange);
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ========================================
   Search Box
   ======================================== */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ========================================
   Media Detail / Lightbox
   ======================================== */
.media-detail-section {
    padding: 120px 0 80px;
}

.media-detail-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 30px;
}

.media-detail-image img,
.media-detail-image video {
    width: 100%;
    display: block;
}

.media-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.media-detail-info p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    transition-property: transform, opacity;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    max-width: 350px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.flash-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}
