/* --- REPLICATION STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #008BF7;
  --primary-dark: #006BBF;
  --secondary: #102136;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #F2F5FA;
  --bg-white: #ffffff;
  --border-color: #E7EBEE;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 30px 40px -10px rgba(0, 0, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: transparent; }

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-padding { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h5 { color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.section-title h2 { font-size: 42px; margin-bottom: 20px; font-weight: 800; }
.section-title p { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 18px; }

@media(max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .section-title h2 { font-size: 32px; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: var(--transition); cursor: pointer; font-family: var(--font-heading);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-secondary { background: var(--bg-light); color: var(--secondary); }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* HEADER & NAVIGATION */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition); height: 90px;
  display: flex; align-items: center;
}
header.transparent { background: transparent; box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
header.transparent .nav-link,
header.transparent .logo-text-wrapper span { color: #fff; }
header.transparent .btn-primary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
header.transparent .btn-primary:hover { background: var(--primary); border-color: var(--primary); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-container { display: flex; align-items: center; }
.logo-title { font-family: var(--font-heading); font-weight: 800; font-size: 28px; line-height: 1; color: var(--secondary); }
.logo-title span { color: var(--primary); }

.nav-menu { display: flex; gap: 40px; }
.nav-link {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  color: var(--secondary); position: relative; padding: 35px 0;
  text-transform: capitalize;
}
.nav-item { position: static; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; right: 0; width: 100%;
  background: #fdfdfd; box-shadow: 0 40px 60px -15px rgba(0,0,0,0.05); border-radius: 0 0 30px 30px;
  padding: 50px 5%; display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 100;
  list-style: none; border-top: 1px solid rgba(0,0,0,0.04);
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-item-card {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  text-decoration: none; padding: 0; border-radius: 0;
  transition: 0.4s ease; width: 220px; text-align: center; background: transparent;
}
.dropdown-item-card:hover { transform: translateY(-5px); }
.dropdown-item-card img { width: 100%; height: 130px; object-fit: contain; padding: 10px; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: 0.5s ease; border: 1px solid rgba(0,0,0,0.03); }
.dropdown-item-card:hover img { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-5px) scale(1.02); }
.dropdown-item-card span { font-weight: 600; font-size: 16px; color: var(--secondary); transition: 0.3s; }
.dropdown-item-card:hover span { color: var(--primary); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; bottom: 30px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; z-index: 1001; }
.menu-toggle span { width: 30px; height: 3px; background: var(--secondary); transition: var(--transition); border-radius: 3px; }
header.transparent .menu-toggle span { background: #fff; }

@media (max-width: 992px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100vh; max-width: 100%;
    background: #fff; flex-direction: column; padding: 100px 30px; gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.4s ease; overflow-y: auto;
  }
  .nav-menu.mobile-open { right: 0; }
  .nav-link { padding: 10px 0; font-size: 18px; color: var(--secondary) !important; display: block;}
  .menu-toggle { display: flex; }
  
  .dropdown-menu {
    position: static; transform: none; box-shadow: none; padding: 15px 0 15px 10px;
    opacity: 1; visibility: visible; display: none; background: transparent;
    flex-direction: column; width: 100%; border: none; border-radius: 0;
  }
  .nav-item.active .dropdown-menu { display: flex; }
  .dropdown-item-card { width: 100%; flex-direction: row; text-align: left; padding: 15px; gap: 20px; background: rgba(0,0,0,0.02); border-radius: 16px; margin-bottom: 10px; }
  .dropdown-item-card img { width: 100px; height: 80px; padding: 5px; }
  .dropdown-item-card span { font-size: 18px; font-weight: 600; }
}

/* HERO SLIDER (Homepage) */
.hero-slider { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background: var(--secondary); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 6s ease; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,33,54,0.9) 0%, rgba(16,33,54,0.4) 40%, rgba(0,0,0,0.1) 100%); transition: opacity 0.5s ease; }
.hero-slide.is-video:not(.video-ended) .hero-overlay { opacity: 0; }
.hero-content { position: absolute; bottom: 20%; left: 0; right: 0; color: #fff; z-index: 10; }
.hero-content .container { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-title { font-size: 64px; font-weight: 800; margin-bottom: 25px; color: #fff; opacity: 0; transform: translateY(40px); line-height: 1.1; }
.hero-desc { font-size: 20px; margin-bottom: 40px; opacity: 0; transform: translateY(40px); font-weight: 300; }
.hero-btn { opacity: 0; transform: translateY(40px); }
.hero-slide.active:not(.is-video) .hero-title, .hero-slide.active:not(.is-video) .hero-desc, .hero-slide.active:not(.is-video) .hero-btn,
.hero-slide.video-ended .hero-title, .hero-slide.video-ended .hero-desc, .hero-slide.video-ended .hero-btn { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.hero-slide.active:not(.is-video) .hero-desc, .hero-slide.video-ended .hero-desc { transition-delay: 0.5s; }
.hero-slide.active:not(.is-video) .hero-btn, .hero-slide.video-ended .hero-btn { transition-delay: 0.7s; }
.hero-controls { position: absolute; inset: 0; z-index: 11; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.hero-slider:hover .hero-controls { opacity: 1; }
#hero-dots { position: absolute; bottom: 50px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: auto; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--primary); transform: scale(1.2); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; color: rgba(255,255,255,0.6); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: none; transition: var(--transition); font-size: 36px; pointer-events: auto; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-arrow:hover { color: #fff; transform: translateY(-50%) scale(1.15); }
#hero-prev { left: 40px; }
#hero-next { right: 40px; }


@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 16px; }
  .hero-bg { object-fit: cover; height: 100vh; transform: none; }
}

/* PAGE HERO (Sub-pages) */
.page-hero { background: var(--secondary); padding: 180px 0 80px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat; opacity: 0.15; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: 56px; margin-bottom: 20px; }
.page-hero p { font-size: 20px; color: rgba(255,255,255,0.8); max-width: 800px; margin: 0 auto; }

/* ABOUT US */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; bottom: 30px; right: -30px; background: var(--primary); color: #fff; padding: 30px; border-radius: 16px; box-shadow: var(--shadow-lg); font-family: var(--font-heading); text-align: center; }
.about-badge h3 { font-size: 48px; color: #fff; margin: 0; line-height: 1; }
.about-badge span { font-size: 16px; font-weight: 500; }
.about-content h2 { font-size: 46px; margin-bottom: 25px; }
.about-content p { color: var(--text-muted); margin-bottom: 25px; font-size: 18px; line-height: 1.7; }
.about-content ul { margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-content ul li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; color: var(--secondary); }
.about-content ul li i { color: var(--primary); font-size: 24px; }
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { right: 20px; }
  .about-content ul { grid-template-columns: 1fr; }
}

/* LIVOLTEK CLIP-PATH CARDS (Four-Qie / Cut Corners) */
.clip-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.clip-card {
  position: relative; height: 450px; overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  background: var(--secondary); cursor: pointer;
}
.clip-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fdfdfd; transition: transform 0.6s ease; opacity: 0.8; }
.clip-card:hover .clip-card-img { transform: scale(1.1); opacity: 0.6; }
.clip-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,33,54,0.95) 0%, rgba(16,33,54,0.4) 50%, transparent 100%); transition: var(--transition); }
.clip-card:hover .clip-card-overlay { background: rgba(0, 139, 247, 0.8); }
.clip-card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 40px;
  color: #fff; transition: var(--transition);
}
.clip-card-content h3 { color: #fff; font-size: 28px; margin-bottom: 10px; transition: var(--transition); }
.clip-card-desc {
  font-size: 16px; color: rgba(255,255,255,0.9);
  max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease;
  margin-bottom: 0;
}
.clip-card:hover .clip-card-desc { max-height: 100px; opacity: 1; margin-bottom: 20px; margin-top: 15px; }
.clip-card-arrow {
  color: #fff; font-size: 24px; opacity: 0; transform: translateX(-20px); transition: all 0.4s ease;
  display: inline-block;
}
.clip-card:hover .clip-card-arrow { opacity: 1; transform: translateX(0); }
.clip-card:hover .clip-card-content { bottom: 20px; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card {
  padding: 50px 40px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-bottom-color: var(--primary); }
.feature-icon {
  width: 90px; height: 90px; background: var(--bg-light); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 25px; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-card h3 { font-size: 22px; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 16px; }

/* PRODUCTS GRID (Catalog) */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--border-color);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-img-wrap {
  position: relative; height: 280px; padding: 30px; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img-wrap img { max-height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.15); }
.product-badge { position: absolute; top: 20px; left: 20px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px; text-transform: uppercase; letter-spacing: 1px;}
.product-info { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 24px; margin-bottom: 15px; }
.product-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-color); }
.product-price { font-weight: 800; color: var(--primary); font-size: 22px; }

/* GALLERY / NEWS STYLE */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.gallery-item {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition);
}
.gallery-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-8px); }
.gallery-img-wrap { position: relative; height: 260px; overflow: hidden; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.1); }
.gallery-type { position: absolute; top: 20px; left: 20px; background: rgba(16,33,54,0.85); color: #fff; backdrop-filter: blur(5px); padding: 6px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; z-index: 2; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,139,247,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { background: #fff; color: var(--primary); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transform: scale(0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }
.gallery-info { padding: 30px; }
.gallery-title { font-size: 22px; margin-bottom: 12px; }

/* TIMELINE */
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.timeline-grid::before { content: ''; position: absolute; top: 45px; left: 10%; right: 10%; height: 2px; border-top: 2px dashed var(--border-color); z-index: 1; }
.timeline-item { text-align: center; position: relative; z-index: 2; }
.timeline-icon { width: 90px; height: 90px; background: #fff; border: 3px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--primary); margin: 0 auto 25px; transition: var(--transition); }
.timeline-item:hover .timeline-icon { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 8px rgba(0,139,247,0.1); }
.timeline-item h4 { font-size: 20px; margin-bottom: 12px; font-family: var(--font-heading); color: var(--secondary); }
.timeline-item p { color: var(--text-muted); font-size: 15px; }

@media (max-width: 992px) {
  .timeline-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .timeline-grid::before { display: none; }
}
@media (max-width: 576px) { .timeline-grid { grid-template-columns: 1fr; } }

/* CTA BANNER */
.cta-banner { background: var(--primary); padding: 100px 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1631526431940-057bf241eb75?auto=format&fit=crop&q=80&w=2000') center/cover; opacity: 0.15; mix-blend-mode: overlay; }
.cta-banner .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-banner h2 { font-size: 48px; color: #fff; margin-bottom: 25px; }
.cta-banner p { font-size: 20px; color: rgba(255,255,255,0.9); margin-bottom: 40px; max-width: 700px; }

/* CONTACT GRID */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info-card { background: var(--secondary); color: #fff; padding: 50px; border-radius: 20px; position: relative; overflow: hidden; }
.contact-info-card::before { content: ''; position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: var(--primary); opacity: 0.1; }
.contact-info-card h3 { color: #fff; font-size: 32px; margin-bottom: 25px; }
.contact-list { margin-top: 40px; }
.contact-list li { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.contact-list li i { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex-shrink: 0; transition: var(--transition); }
.contact-list li:hover i { background: var(--primary); color: #fff; }
.contact-form { padding: 50px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }

@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

/* FOOTER */
footer { background: var(--secondary); color: #fff; padding: 100px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 80px; }
.footer-logo { margin-bottom: 25px; }
.footer-desc { color: rgba(255,255,255,0.7); margin-bottom: 25px; max-width: 320px; font-size: 15px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition); font-size: 18px; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-widget h4 { color: #fff; margin-bottom: 25px; font-size: 20px; }
.footer-widget ul li { margin-bottom: 15px; }
.footer-widget ul a { color: rgba(255,255,255,0.7); font-size: 15px; transition: var(--transition); display: inline-block; }
.footer-widget ul a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.5); font-size: 14px; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } }

/* ADMIN MODALS & OVERLAYS */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal.active { opacity: 1; visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(16,33,54,0.9); backdrop-filter: blur(10px); }
.modal-content { position: relative; background: #fff; border-radius: 20px; width: 90%; max-width: 500px; padding: 50px; transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 90vh; overflow-y: auto; }
.modal.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 25px; right: 25px; background: var(--bg-light); border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--secondary); transition: var(--transition); font-size: 18px; }
.modal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 15px; color: var(--secondary); }
.form-control { width: 100%; padding: 15px 20px; border: 2px solid var(--border-color); border-radius: 10px; font-family: inherit; font-size: 16px; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(0,139,247,0.1); }

/* ADMIN DASHBOARD SPECIFIC */
#admin-dashboard-modal .modal-content { max-width: 1100px; padding: 0; display: flex; overflow: hidden; }
.admin-sidebar { width: 280px; background: var(--bg-light); padding: 40px 25px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.admin-tab-btn { width: 100%; text-align: left; padding: 15px 20px; background: transparent; border-radius: 10px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; transition: var(--transition); display: flex; gap: 15px; align-items: center; font-size: 15px; }
.admin-tab-btn:hover, .admin-tab-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.admin-main { flex: 1; padding: 50px; overflow-y: auto; max-height: 85vh; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.admin-list-item { display: flex; align-items: center; justify-content: space-between; padding: 20px; border: 2px solid var(--border-color); border-radius: 12px; margin-bottom: 15px; transition: var(--transition); }
.admin-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.admin-list-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-right: 20px; }

/* Lightbox specifically for gallery videos */
.video-container iframe { width: 100%; height: 70vh; border: none; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* Floating WA */
.floating-wa { position: fixed; bottom: 40px; right: 40px; z-index: 999; width: 65px; height: 65px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 10px 20px rgba(37,211,102,0.3); transition: transform 0.3s; }
.floating-wa:hover { transform: scale(1.15) rotate(5deg); }

/* NAVBAR DROPDOWN OVERRIDE REMOVED */
/* Mega menu styles are handled in lines 101-119 */
.nav-link i.fa-chevron-down { font-size: 12px; margin-left: 5px; transition: var(--transition); }
.nav-item:hover .nav-link i.fa-chevron-down { transform: rotate(180deg); }

/* Removed old dropdown media query to avoid conflicts */

/* --- SUPER ADVANCED ADMIN DASHBOARD --- */
.admin-body { background: #f4f7fe; font-family: var(--font-main); overflow: hidden; height: 100vh; }
.admin-login-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--secondary) 0%, #1a365d 100%); }
.admin-login-card { background: rgba(255, 255, 255, 0.95); padding: 50px; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); width: 100%; max-width: 450px; text-align: center; backdrop-filter: blur(10px); }

.admin-layout { display: flex; height: 100vh; }
.admin-sidebar-new { width: 280px; background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,0.02); display: flex; flex-direction: column; z-index: 10; transition: var(--transition); }
.admin-logo { padding: 30px; display: flex; align-items: center; gap: 15px; font-size: 24px; font-weight: 800; color: var(--secondary); font-family: var(--font-heading); border-bottom: 1px solid var(--border-color); }
.admin-nav { padding: 20px; flex: 1; overflow-y: auto; }
.admin-nav-item { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-radius: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; cursor: pointer; transition: var(--transition); }
.admin-nav-item i { font-size: 20px; width: 24px; text-align: center; }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(0,139,247,0.2); transform: translateX(5px); }
.admin-nav-item.logout { color: #ef4444; margin-top: auto; }
.admin-nav-item.logout:hover { background: #fee2e2; color: #ef4444; box-shadow: none; }

.admin-main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { height: 80px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.02); z-index: 5; }
.admin-topbar h2 { font-size: 22px; color: var(--secondary); margin: 0; }
.admin-topbar-right { display: flex; align-items: center; gap: 20px; }
.admin-user { display: flex; align-items: center; gap: 15px; font-weight: 600; color: var(--secondary); }
.admin-avatar { width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.admin-content-area { flex: 1; overflow-y: auto; padding: 40px; }
.admin-section { display: none; animation: slideUpFade 0.4s ease; }
.admin-section.active { display: block; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Stats Grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 40px; }
.stat-card { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: space-between; transition: var(--transition); border: 1px solid rgba(0,0,0,0.02); }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.05); border-color: var(--primary); }
.stat-info h4 { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; font-family: var(--font-main); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}
.stat-info h2 { font-size: 36px; color: var(--secondary); margin: 0; }
.stat-icon { width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.stat-icon.blue { background: rgba(0,139,247,0.1); color: var(--primary); }
.stat-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

/* Tables & Cards */
.admin-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); padding: 30px; margin-bottom: 30px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.admin-card-header h3 { font-size: 20px; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 15px 20px; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border-color); background: var(--bg-light); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.data-table th:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.data-table th:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.data-table td { padding: 20px; border-bottom: 1px solid var(--border-color); vertical-align: middle; font-weight: 500; }
.data-table tr:hover td { background: #f8fafc; }
.data-table img { width: 60px; height: 60px; border-radius: 10px; object-fit: contain; background: #fff; }
.action-btns { display: flex; gap: 10px; }
.btn-icon { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; }
.btn-icon.edit { background: rgba(0,139,247,0.1); color: var(--primary); }
.btn-icon.edit:hover { background: var(--primary); color: #fff; }
.btn-icon.delete { background: rgba(239,68,68,0.1); color: #ef4444; }
.btn-icon.delete:hover { background: #ef4444; color: #fff; }

/* Toasts */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.toast { background: #fff; padding: 16px 24px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 15px; font-weight: 600; color: var(--secondary); transform: translateX(120%); opacity: 0; animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; border-left: 4px solid var(--primary); }
.toast i { font-size: 20px; color: var(--primary); }
.toast.error { border-left-color: #ef4444; }
.toast.error i { color: #ef4444; }
@keyframes slideInRight { to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { to { transform: translateX(120%); opacity: 0; } }

@media (max-width: 992px) {
  .admin-layout { flex-direction: column; height: 100vh; overflow: hidden; }
  .admin-sidebar-new { width: 100%; height: auto; flex-direction: column; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
  .admin-logo { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
  .admin-nav { display: flex; flex-direction: row; overflow-x: auto; padding: 10px 15px; gap: 10px; flex: none; }
  .admin-nav::-webkit-scrollbar { height: 4px; }
  .admin-nav::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
  .admin-nav-item { white-space: nowrap; padding: 10px 15px; margin-bottom: 0; }
  .admin-nav-item.logout { margin-top: 0; }
  .admin-topbar { padding: 15px 20px; height: auto; flex-wrap: wrap; gap: 10px; }
  .admin-topbar-right { gap: 10px; }
  .admin-topbar-right .btn { padding: 8px 12px; font-size: 13px; }
  .admin-content-area { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-login-card { margin: 20px; padding: 30px 20px; }
}