/* ============================================
   Samtek Metal CMS - Corporate Theme
   Sheet Metal Cutting, Bending, Laser Cutting
   ============================================ */

:root {
  --primary: #1B4F72;
  --primary-light: #2E86C1;
  --primary-dark: #154360;
  --accent: #E67E22;
  --accent-hover: #D35400;
  --dark: #1C2833;
  --dark-light: #2C3E50;
  --text: #2C3E50;
  --text-light: #7F8C8D;
  --light: #F4F6F7;
  --white: #FFFFFF;
  --border: #E5E8E8;
  --copper: #B87333;
  --brass: #D4A017;
  --bronze: #CD7F32;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ============================================
   1. GLOBAL STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-lg {
    padding: 120px 0;
}

.bg-light-gray {
    background-color: var(--light);
}

.bg-dark-section {
    background-color: var(--dark);
    color: var(--white);
}

.bg-primary-section {
    background-color: var(--primary);
    color: var(--white);
}

.bg-white {
    background-color: var(--white);
}

/* Base buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 28px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border: none;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ============================================
   2. TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--dark);
    color: var(--light);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
}

.top-bar-item:last-child {
    margin-right: 0;
}

.top-bar-item i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1rem;
}

.top-bar a {
    color: var(--light);
}

.top-bar a:hover {
    color: var(--accent);
}

.social-links-top {
    display: flex;
    align-items: center;
}

.social-links-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 10px;
    font-size: 0.9rem;
}

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

/* ============================================
   3. NAVBAR
   ============================================ */
.main-navbar {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navbar.navbar-scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 50px; /* fallback, overridden by inline style from admin panel */
    height: auto;
    margin-right: 15px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-light) !important;
    padding: 10px 18px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 15px 0;
    animation: fadeIn 0.3s ease;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 25px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 30px;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* ============================================
   4. HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(28, 40, 51, 0.95) 0%, rgba(28, 40, 51, 0.7) 50%, rgba(28, 40, 51, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s ease 0.3s;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    color: var(--light);
    font-size: 1.35rem;
    max-width: 650px;
    margin-bottom: 40px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s ease 0.5s;
    font-weight: 300;
}

.hero-buttons {
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s ease 0.7s;
    display: flex;
    gap: 15px;
}

.hero-slide.active .hero-content h1,
.hero-slide.active .hero-content p,
.hero-slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active {
    background-color: transparent;
    border-color: var(--accent);
    transform: scale(1.3);
}

.slider-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.slider-arrow:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* ============================================
   5. SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-dark-section .section-title h2 {
    color: var(--white);
}

.section-title .underline {
    height: 4px;
    width: 100px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-title .underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 10px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title .underline::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 10px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

.bg-dark-section .section-title .underline::before,
.bg-dark-section .section-title .underline::after {
    background-color: var(--white);
}

.section-title p {
    color: var(--text-light);
    max-width: 750px;
    margin: 25px auto 0;
    font-size: 1.15rem;
    line-height: 1.8;
}

.bg-dark-section .section-title p {
    color: var(--light);
    opacity: 0.8;
}

.section-title-left {
    text-align: left;
}

.section-title-left .underline {
    margin: 0;
}

/* ============================================
   6. SERVICE / PRODUCT CARDS
   ============================================ */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(230, 126, 34, 0.03);
    transition: var(--transition);
    z-index: 0;
    pointer-events: none;
}
.service-card:hover::before {
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent);
}
.service-card .card-body,
.service-card .card-footer {
    position: relative;
    z-index: 1;
}
.service-card h3, .service-card h5, .service-card h6 {
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.service-card:hover .service-link i {
    transform: translateX(8px);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* ============================================
   7. ABOUT SECTION
   ============================================ */
.about-img-wrap {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-img-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    height: 85%;
    background-color: var(--primary);
    border-radius: var(--radius);
    z-index: 1;
}

.about-experience {
    position: absolute;
    top: 40px;
    right: -30px;
    background-color: var(--accent);
    color: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.about-experience h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 800;
}

.about-experience p {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.about-content h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content .lead {
    color: var(--dark-light);
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-list li {
    position: relative;
    padding-left: 35px;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.about-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 1.2rem;
}

/* ============================================
   8. WHY CHOOSE US
   ============================================ */
.feature-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: calc(100% - 30px);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.feature-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: rgba(27, 79, 114, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
}

.feature-content h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   9. GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 79, 114, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-icon {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

.gallery-category {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-item:hover .gallery-category {
    transform: translateY(0);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ============================================
   10. NEWS CARDS
   ============================================ */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    bottom: 0;
    left: 25px;
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.2;
}

.news-date span {
    display: block;
    font-size: 1.5rem;
}

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

.news-meta {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.news-meta span i {
    color: var(--primary);
    margin-right: 5px;
}

.news-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-card h3 a {
    color: var(--dark);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card .btn-link {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.news-card .btn-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.news-card:hover .btn-link i {
    transform: translateX(8px);
}

/* ============================================
   11. REFERENCE LOGOS
   ============================================ */
.reference-item {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.reference-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--light);
}

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

/* ============================================
   12. CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    height: 100%;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    margin-bottom: 25px;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-detail h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-detail p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.contact-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-social h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
}

.contact-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    height: auto;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 79, 114, 0.1);
}

textarea.form-control {
    min-height: 150px;
}

.map-container {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   13. FOOTER
   ============================================ */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px 0 0;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 25px;
}

.footer-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--accent);
    transition: transform 0.3s;
}

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

.footer-links a:hover::before {
    transform: translateX(5px);
}

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

.footer-contact li {
    display: flex;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 30px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary);
}

.footer-bottom {
    background-color: #151e27;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-social {
    display: flex;
    justify-content: flex-end;
}

.footer-social a {
    color: rgba(255,255,255,0.6);
    margin-left: 20px;
    font-size: 1.1rem;
}

.footer-social a:hover {
    color: var(--accent);
}

/* ============================================
   14. BLOG PAGES
   ============================================ */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.blog-img {
    position: relative;
}

.blog-img img {
    width: 100%;
    height: auto;
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta span i {
    color: var(--accent);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--dark);
}

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

.blog-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

.blog-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: var(--dark);
}

.recent-post-content h4 a:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag {
    background: var(--light);
    color: var(--text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.blog-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   15. PAGE TEMPLATE
   ============================================ */
.page-hero {
    padding: 100px 0;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 40, 51, 0.75);
    z-index: 0;
}

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

.page-hero h1 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero .breadcrumb-item a,
.page-hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.page-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.page-content {
    padding: 0;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

.page-content img {
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.page-content h2, 
.page-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.page-content li {
    margin-bottom: 10px;
}

/* ============================================
   16. SEARCH RESULTS
   ============================================ */
.search-form-lg {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
}

.search-form-lg input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    border-radius: 50px;
    border: 2px solid var(--border);
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-form-lg input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--shadow-hover);
}

.search-form-lg button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-lg button:hover {
    background: var(--accent);
}

.search-result-item {
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.search-result-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.search-result-title a {
    color: var(--dark);
}

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

.search-result-url {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.search-result-text {
    color: var(--text-light);
    margin: 0;
}

.highlight {
    background-color: rgba(230, 126, 34, 0.2);
    padding: 0 3px;
    font-weight: 600;
    border-radius: 3px;
}

/* ============================================
   17. ERROR PAGE
   ============================================ */
.error-section {
    padding: 120px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(27, 79, 114, 0.1);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.error-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   18. ANNOUNCEMENTS
   ============================================ */
.announcement-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.announcement-card.important {
    border-left-color: #E74C3C;
}

.announcement-card.important .announcement-badge {
    background: #E74C3C;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.announcement-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.announcement-date i {
    margin-right: 5px;
    color: var(--primary);
}

.announcement-badge {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.announcement-content {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   19. VIDEO GALLERY
   ============================================ */
.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-card:hover .video-overlay {
    background: rgba(0,0,0,0.2);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
    transition: transform 0.3s;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
}

.video-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.video-title {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   20. COOKIE CONSENT
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================
   21. BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

/* ============================================
   22. ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   23. CTA BAND
   ============================================ */
.cta-band {
    background-color: var(--primary);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(30deg);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* ============================================
   24. COUNTER SECTION
   ============================================ */
.counter-section {
    background: var(--dark);
    padding: 80px 0;
    color: var(--white);
    position: relative;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.counter-number span {
    font-size: 2rem;
    color: var(--accent);
}

.counter-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   25. BREADCRUMB
   ============================================ */
.breadcrumb-container {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   26. PAGE HERO
   ============================================ */
/* See Section 15 for .page-hero styles */

/* ============================================
   27. LOADING / SKELETON
   ============================================ */
.skeleton {
    background: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shine 1s ease infinite;
    border-radius: 4px;
}

@@keyframes shine {
    to { background-position: right -40px top 0; }
}

.skeleton-text {
    height: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-img {
    height: 200px;
    width: 100%;
    margin-bottom: 15px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   28. RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text {
        margin-bottom: 30px;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-top: 15px;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        background: var(--light);
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-img-wrap {
        margin-bottom: 50px;
    }
    
    .counter-item {
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .about-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   29. PRODUCT DETAIL
   ============================================ */
.product-detail-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.product-info-box {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.product-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-meta-item i {
    color: var(--accent);
    margin-right: 5px;
}

.product-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.product-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
}

.sub-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.sub-product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.sub-product-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.sub-product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.product-sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.product-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-category-list li {
    margin-bottom: 10px;
}

.product-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--light);
    border-radius: 5px;
    color: var(--text);
    transition: var(--transition);
}

.product-category-list a:hover,
.product-category-list a.active {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   30. PRINT STYLES
   ============================================ */
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .top-bar,
    .main-navbar,
    .hero-slider,
    .footer,
    .back-to-top,
    .cookie-consent,
    .btn,
    .cta-band {
        display: none !important;
    }
    
    .section {
        padding: 20px 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .service-card,
    .feature-card,
    .blog-card,
    .news-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none !important;
        transform: none !important;
    }
    
    @page {
        margin: 2cm;
    }
}