/* Padam Electricals — site styles */
:root {
  --primary: #00356f;      /* Padam blue (header background) */
  --primary-dark: #002650;
  --accent: #f88603;       /* Padam orange (live site highlight colour) */
  --accent-dark: #d97300;
  --header-grey: #eaeae8;
  --nav-text: #151616;
  --dropdown-bg: #262f36;
  --text: #333;
  --muted: #6b7280;
  --bg: #fff;
  --bg-alt: #f4f6fa;
  --border: #e3e7ee;
  --radius: 6px;
  --shadow: 0 6px 20px rgba(11, 58, 117, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { font-family: "Poppins", sans-serif; color: var(--primary-dark); line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.hp { display: none !important; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font: 600 14px "Poppins", sans-serif; padding: 11px 26px; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: .5px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 12px; }

/* Top bar — light grey, orange icons, round social icons (as live site) */
.topbar { background: var(--header-grey); padding: 4px 0; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 33px; flex-wrap: wrap; }
.topbar-contact, .topbar-social { display: flex; align-items: center; }
.topbar-contact > span, .topbar-social > span { display: inline-flex; align-items: center; line-height: 1; padding: 0 4px 0 9px; border-left: 1px solid var(--accent); }
.topbar-contact > span:first-child, .topbar-social > span:first-child { border-left: 0; padding-left: 0; }
.topbar-contact a { color: #262f36; }
.topbar-contact a:hover { color: var(--accent); }
.topbar-contact i { color: var(--accent); font-size: 16px; margin-right: 10px; }
.topbar-social > span { padding: 0 6px 0 10px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 17px; transition: opacity .2s; }
.soc:hover { color: #fff; opacity: .85; }
.soc-fb { background: #3b5998; }
.soc-in, .soc-ig { background: #007bb5; }
.topbar-social img { display: block; width: auto; }

/* Logo bar — blue with circuit-board image on the right */
.logobar { background-color: #00356f; background-repeat: no-repeat; background-position: right center; padding: 10px 0; }
.logobar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 100px; width: auto; max-width: 100%; }

/* Navigation — light grey bar, dark uppercase text, orange active/hover */
.mainnav { background: var(--header-grey); position: sticky; top: 0; z-index: 50; }
.mainnav-inner { position: relative; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; color: var(--nav-text); padding: 15px 21px; line-height: 24px;
  /* Arial: what the original site actually shows (it never loads Source Sans Pro) */
  font: 400 14px/24px Arial, Helvetica, sans-serif; text-transform: uppercase;
}
.menu > li > a i { font-size: 11px; margin-left: 2px; }
.menu > li.active { background: var(--accent); }
.menu > li > a:hover, .menu > li:hover > a { background: var(--accent); color: var(--nav-text); }

/* About Us dropdown — dark panel, white uppercase links, orange hover */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--dropdown-bg); padding: 20px 0;
  box-shadow: 0 6px 12px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li a {
  display: block; padding: 0 20px; height: 50px; line-height: 46px; white-space: nowrap; color: #fff;
  font: 600 13px/46px Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.submenu li a:hover { background: var(--accent); color: #fff; }

/* Products mega menu — white panel with category icons */
.menu > li.mega { position: static; }
.megamenu {
  left: 0; right: 0; background: #fff; padding: 10px 20px 15px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.mega-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px; color: #000; border-radius: 4px; }
.mega-item img { height: 70px; width: auto; max-width: 100%; object-fit: contain; }
.mega-item span { font: 400 14px/1.6 Merriweather, Georgia, "Times New Roman", serif; padding: 10px 6px 0; color: #000; }
.mega-item:hover { background: #fdf3e6; color: #000; }
.mega-item:hover span { color: var(--accent-dark); }

.nav-toggle { display: none; background: #fff; border: 0; cursor: pointer; padding: 9px 10px; margin: 8px 0; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--accent); margin: 4px 0; border-radius: 1px; }

/* Flash messages */
.flash { padding: 12px 0; font-weight: 600; }
.flash .container { display: flex; justify-content: space-between; align-items: center; }
.flash-success { background: #e7f7ec; color: #17663a; }
.flash-error { background: #fdeaea; color: #a51d24; }
.flash-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: inherit; }

/* Hero slider */
.hero { position: relative; height: clamp(220px, 42vw, 520px); overflow: hidden; background: var(--primary-dark); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 16px;
}
.hero-nav:hover { background: var(--accent); }
.hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--accent); border-color: var(--accent); }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 28px; position: relative; padding-bottom: 12px; margin-bottom: 24px; }
.section-title span { color: var(--accent); }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--accent); }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-title.small { font-size: 22px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Feature boxes */
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.feature:hover { transform: translateY(-6px); }
.feature img { width: 100%; height: 220px; object-fit: cover; }
.feature-body { padding: 20px 22px; border-top: 4px solid var(--accent); }
.feature-body h3 { font-size: 20px; }
.feature-body p { font-size: 14px; color: var(--muted); margin: 0; }

/* About split */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-img img { border-radius: var(--radius); margin: 0 auto; }

/* Counters */
.counters { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 50px 0; }
.counter { text-align: center; }
.counter strong { display: block; font: 700 46px "Poppins", sans-serif; color: #fff; }
.counter strong::after { content: "+"; color: var(--accent); }
.counter span { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; opacity: .85; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-tile {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius);
  font: 500 15px "Poppins", sans-serif; color: var(--primary-dark); transition: .2s;
}
.cat-tile i { color: var(--accent); }
.cat-tile:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-tile:hover i { color: #fff; }

/* Events */
.event-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.event-card img { width: 100%; height: 230px; object-fit: cover; }
.event-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.event-body p { margin: 0; font-size: 14px; }
.event-body .btn { align-self: flex-start; }

/* Page banner */
.page-banner { background: linear-gradient(rgba(7,42,86,.88), rgba(7,42,86,.88)), var(--primary); color: #fff; padding: 42px 0; }
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 6px; }
.breadcrumb { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: #ffc77f; }
.breadcrumb a:hover { color: #fff; }

/* Catalogue layout */
.with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.product-thumb { display: flex; align-items: center; justify-content: center; height: 200px; padding: 14px; background: #fff; }
.product-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.product-body { padding: 14px 16px 18px; border-top: 1px solid var(--border); text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.product-body h3 { font-size: 15px; margin: 0; }
.product-body h3 a { color: var(--primary-dark); }
.product-body h3 a:hover { color: var(--accent); }
.product-body .btn { align-self: center; }
.empty { background: var(--bg-alt); padding: 24px; border-radius: var(--radius); }

.sidebar { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; position: sticky; top: 70px; }
.sidebar h2 { font-size: 18px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.side-cats, .side-cats ul { list-style: none; margin: 0; padding: 0; }
.side-cats > li > a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
.side-cats > li.active > a, .side-cats a:hover { color: var(--accent); }
.side-cats ul { padding-left: 14px; }
.side-cats ul a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.side-cats ul a::before { content: "\203A"; margin-right: 6px; color: var(--accent); }
.side-cats ul li.active a { color: var(--accent); font-weight: 600; }

.product-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.product-detail.has-table { grid-template-columns: minmax(280px, 0.8fr) 1.4fr; }
.product-image { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: #fff; position: sticky; top: 70px; }
.product-image img { margin: 0 auto; max-height: 440px; width: auto; }
.product-desc ul { padding-left: 20px; margin: 0 0 1em; }
.product-desc li { margin-bottom: 4px; }
.product-actions { margin-top: 24px; text-align: right; }
.related { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Spec / price tables (like the live site: blue header, shaded MRP column) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { background: #003979; color: #fff; font: 600 14px "Poppins", sans-serif; padding: 10px 12px; text-align: center; white-space: nowrap; }
.spec-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.spec-table tr:nth-child(even) td { background: #f7f9fc; }
.spec-table tr:hover td { background: #eef3fb; }
.spec-table td.col-mrp, .spec-table tr:nth-child(even) td.col-mrp { background: #d9d9d9; font-weight: 600; }
.spec-table td[colspan] { background: var(--accent); color: #fff; font-weight: 700; letter-spacing: 1px; }
.product-info h2 { font-size: 24px; }
.product-info h3 { font-size: 17px; text-transform: capitalize; color: var(--accent); }
.product-cat { color: var(--muted); font-size: 14px; }

/* Prose & lists */
.prose { max-width: 960px; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px dashed var(--border); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 6px; color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 24px 0; }
.split img { border-radius: var(--radius); }

/* People (The Group) */
.people { display: grid; gap: 28px; }
.person { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--border); padding: 22px 26px; }
.person-grey { background: #efefef; }
.person-right { grid-template-columns: 1fr 190px; }
.person-right img { order: 2; }
.person img { width: 190px; height: auto; }
.person-text h3 { text-align: center; font: 700 20px Georgia, "Times New Roman", serif; color: #111; margin-bottom: 12px; }
.person-text p { text-align: justify; font-size: 14px; margin-bottom: .8em; }

/* Events — image left, caption right, in bordered rows */
.event-list { display: grid; gap: 22px; }
.event-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--border); padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.event-row img { width: 200px; height: auto; border: 2px solid #c58b2a; }
.event-caption { text-transform: capitalize; font: 400 15px/1.6 Georgia, "Times New Roman", serif; color: #222; margin: 0 0 6px; }
.event-note { font-weight: 700; font-size: 14px; color: #222; margin: 0 0 4px; }

/* Approval lists and lead headings */
.approval-list li { font-size: 14px; }
.lead-heading { font: 600 19px/1.45 "Source Sans Pro", Arial, sans-serif; color: var(--primary-dark); }

/* Gallery (Affiliations) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.gallery-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: #fff; text-align: center; color: var(--text); transition: .2s; }
.gallery-item:hover { box-shadow: var(--shadow); }
.gallery-item img { height: 280px; width: 100%; object-fit: contain; margin-bottom: 8px; }

/* Certificate gallery (Affiliations) — view only */
.cert-gallery .gallery-item { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; font: inherit; cursor: zoom-in; }
.cert-gallery .gallery-item:hover, .cert-gallery .gallery-item:focus-visible { border-color: var(--accent); transform: translateY(-3px); outline: none; }
.cert-thumb { display: block; height: 280px; background: #f7f7f7 center / contain no-repeat; border-radius: 4px; margin-bottom: 10px; }
.cert-caption { font-size: 15px; line-height: 1.5; }
.cert-zoom { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 38, 80, .8); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.cert-gallery .gallery-item:hover .cert-zoom, .cert-gallery .gallery-item:focus-visible .cert-zoom { opacity: 1; }
.cert-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.cert-gallery, .cert-protect, .lightbox { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Approval page certificate cards open the same viewer */
.approval-document-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.approval-document-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.approval-document-image { position: relative; }
.approval-document-image .cert-thumb { width: 100%; height: 100%; margin: 0; background-color: transparent; transition: transform .3s ease; }
.approval-document-card:hover .approval-document-image .cert-thumb { transform: scale(1.03); }
.approval-document-image .cert-zoom { top: 12px; right: 12px; }
.approval-document-card:hover .cert-zoom, .approval-document-open:focus-visible .cert-zoom { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: #0b1424; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; background: #0b1424; position: relative; z-index: 3; }
.lb-caption { font-weight: 600; font-size: 16px; }
.lb-count { color: #b9c3d3; font-size: 14px; margin-left: 10px; font-weight: 400; }
.lb-tools { display: flex; gap: 8px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); outline: none; }
.lb-stage { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 70px 20px; }
.lb-stage.zoomed { overflow: auto; display: block; padding: 0; cursor: grab; }
.lb-stage.zoomed.dragging { cursor: grabbing; }
.lb-image { width: 100%; height: 100%; background: center / contain no-repeat; cursor: zoom-in; }
.lb-stage.zoomed .lb-image { background-size: 100% 100%; cursor: inherit; margin: 0 auto; }
.lb-shield { position: absolute; inset: 0; }   /* transparent layer over the picture */
.lb-stage.zoomed .lb-shield { display: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lightbox.is-zoomed .lb-nav { display: none; }
.lb-loading { position: absolute; color: #b9c3d3; }
body.lb-open { overflow: hidden; }
@media (max-width: 600px) {
  .lb-stage { padding: 0 8px 12px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lb-caption { font-size: 14px; }
}
/* Certificates are for viewing on screen only */
@media print { .cert-gallery, .cert-protect, .lightbox { display: none !important; } }

/* Forms */
.form-card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--accent); }
.enquiry-form label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.enquiry-form input, .enquiry-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd6e1; border-radius: var(--radius);
  font: inherit; background: #fff;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.enquiry-form .btn { margin-top: 16px; width: 100%; }
.captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-img { border: 1px solid #cfd6e1; border-radius: var(--radius); background: #f6f7fa; width: 190px; height: 56px; }
.captcha-refresh { width: 40px; height: 40px; border: 1px solid #cfd6e1; border-radius: var(--radius); background: #fff; color: var(--primary); cursor: pointer; font-size: 16px; }
.captcha-refresh:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.enquiry-form .captcha-input { flex: 1 1 110px; width: auto; min-width: 110px; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.enquiry-form input[readonly] { background: #f1f3f6; color: #444; cursor: not-allowed; }
.contact-block { line-height: 1.9; }
.map { margin-top: 40px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 28px; width: 100%; max-width: 460px; position: relative; max-height: 92vh; overflow: auto; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }

/* Footer */
.site-footer { background: #0a1f3d; color: #c9d3e3; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 30px; padding: 50px 16px 30px; }
.site-footer h3 { color: #fff; font-size: 18px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #c9d3e3; }
.site-footer a:hover { color: #fff; }
.footer-col ul a::before { content: "\203A"; margin-right: 8px; color: var(--accent); }
.footer-logo { display: block; margin-bottom: 18px; }
.footer-logo img { height: 80px; width: auto; max-width: 100%; }
.footer-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.footer-badges img { background: #fff; border-radius: var(--radius); padding: 8px; width: 100%; height: 100px; max-width: none; object-fit: contain; }
.footer-contact i { color: var(--accent); width: 18px; }
.footer-bottom { background: #061428; padding: 14px 0; text-align: center; font-size: 13px; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; z-index: 100; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary); color: #fff; }

/* Responsive */
@media (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about, .product-detail, .product-detail.has-table, .split { grid-template-columns: 1fr; }
  .product-image { position: static; }
  .product-actions { text-align: left; }

  .nav-toggle { display: block; margin-left: auto; }
  .mainnav-inner { display: flex; flex-direction: column; }
  .logo img { height: 70px; }
  .logo-center { display: none; }
  .mainnav .menu { display: none; flex-direction: column; padding-bottom: 8px; }
  .mainnav.open .menu { display: flex; }
  .menu > li > a { padding: 10px 6px; border-bottom: 1px solid #d8d8d5; }
  .submenu, .megamenu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; min-width: 0; }
  .megamenu { grid-template-columns: repeat(3, 1fr); }
  .has-sub.open > .submenu { display: block; }
  .has-sub.open > .megamenu { display: grid; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open:hover > .submenu { display: block; }
  .has-sub.open:hover > .megamenu { display: grid; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .topbar-contact { display: none; }
  .logo img { height: 52px; }
  .megamenu { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  .section-title { font-size: 23px; }
  .page-banner h1 { font-size: 24px; }
  .person, .person-right { grid-template-columns: 1fr; justify-items: center; }
  .person-right img { order: 0; }
  .event-row { grid-template-columns: 1fr; }
  .event-row img { width: 100%; }
  .counter strong { font-size: 36px; }
}
.footer-bottom a { color: var(--accent); font-weight: 600; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* Preview mode: links to pages that are not published yet */
a[data-link-off] { cursor: default; }

/* Approval page — "Our Certificates" (same look as the demo) */
.approval-documents { margin: 60px auto 30px; padding: 35px 0; }
.approval-documents h2 { text-align: center; font-size: 30px; font-weight: 700; color: #102b4e; margin: 0 0 40px; padding-bottom: 15px; position: relative; }
.approval-documents h2::after { content: ""; position: absolute; width: 65px; height: 3px; background: #f58200; bottom: 0; left: 50%; transform: translateX(-50%); }
.approval-documents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; align-items: stretch; }
.approval-document-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 15px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,.07); text-align: center; transition: all .3s ease; }
.approval-document-card:hover { transform: translateY(-5px); border-color: #f58200; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.approval-document-card > a { display: block; width: 100%; }
.approval-document-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 380px; padding: 10px; background: #f7f7f7; border: 1px solid #eee; overflow: hidden; border-radius: 5px; }
.approval-document-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.approval-document-card:hover .approval-document-image img { transform: scale(1.03); }
.approval-document-card h3 { width: 100%; font-size: 17px; font-weight: 600; line-height: 1.5; color: #102b4e; margin: 18px 0 14px; }
@media (max-width: 991px) {
  .approval-documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .approval-document-image { height: 330px; }
}
@media (max-width: 767px) {
  .approval-documents { margin-top: 35px; padding: 25px 0; }
  .approval-documents h2 { font-size: 24px; margin-bottom: 25px; }
  .approval-documents-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .approval-document-card { padding: 12px; }
  .approval-document-image { height: 380px; }
  .approval-document-card h3 { font-size: 16px; }
}
