/*
Theme Name: Schools DNA Competitions
Theme URI: https://schoolsdna.example
Author: Schools DNA
Author URI: https://schoolsdna.example
Description: An Elementor-ready WordPress theme built for Schools DNA Competitions — "Where Students Compete. Create. Shine." Includes full Elementor Pro Theme Builder support (header/footer/archive/single locations), a coded homepage template you can use as-is or rebuild in Elementor, footer widget areas, and a bright navy/purple/yellow visual identity suited to a student-competitions platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schoolsdna
Tags: education, elementor, custom-menu, footer-widgets, full-width-template, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root{
  --sdna-navy:#131a4a;
  --sdna-navy-2:#1b2266;
  --sdna-purple:#5b3df0;
  --sdna-purple-2:#7b5cf7;
  --sdna-yellow:#ffc61a;
  --sdna-yellow-dark:#f5b800;
  --sdna-pink-bg:#fde3ea;
  --sdna-lav-bg:#e9e3fc;
  --sdna-mint-bg:#dcf6ee;
  --sdna-peach-bg:#ffe9d6;
  --sdna-ink:#131a4a;
  --sdna-muted:#5b5f7a;
  --sdna-radius:16px;
  --sdna-shadow:0 10px 30px rgba(19,26,74,0.08);
}

*{box-sizing:border-box;}
body.schoolsdna{
  font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif;
  color:var(--sdna-ink);
  background:#f6f7fc;
  margin:0;
}
body.schoolsdna h1,
body.schoolsdna h2,
body.schoolsdna h3,
body.schoolsdna h4{
  font-family:'Poppins','Trebuchet MS',sans-serif;
  margin:0;
}
body.schoolsdna a{ text-decoration:none; color:inherit; }
body.schoolsdna img{ max-width:100%; height:auto; display:block; }
.sdna-wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.sdna-skip-link{position:absolute;left:-9999px;top:auto;}
.sdna-skip-link:focus{left:16px;top:16px;background:#fff;color:var(--sdna-navy);padding:10px 16px;border-radius:8px;z-index:9999;}

/* Buttons */
.sdna-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:999px;font-weight:700;
  font-size:14px;cursor:pointer;border:none;white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease;
}
.sdna-btn:hover{ transform:translateY(-2px); color:inherit; }
.sdna-btn-yellow{ background:var(--sdna-yellow); color:var(--sdna-navy); box-shadow:0 6px 16px rgba(255,198,26,.4); }
.sdna-btn-outline{ background:transparent; border:2px solid rgba(255,255,255,.7); color:#fff; }
.sdna-btn-outline-dark{ background:transparent; border:2px solid var(--sdna-navy); color:var(--sdna-navy); }

/* Site header */
.sdna-site-header{ background:#fff; position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(19,26,74,.06); }
.sdna-nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:1180px; margin:0 auto; }
.sdna-brand{ display:flex; align-items:center; gap:10px; }
.sdna-brand .sdna-badge{ width:42px; height:42px; border-radius:12px; background:var(--sdna-purple); display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; flex-shrink:0; }
.sdna-brand-text .sdna-name{ font-weight:800; font-size:17px; line-height:1.1; color:var(--sdna-navy); }
.sdna-brand-text .sdna-sub{ font-size:11px; color:var(--sdna-purple); font-weight:700; letter-spacing:.5px; }
.sdna-nav-links{ display:flex; align-items:center; gap:28px; }
.sdna-nav-links ul{ list-style:none; display:flex; gap:28px; margin:0; padding:0; font-weight:600; font-size:14px; color:var(--sdna-navy); }
.sdna-nav-links li a{ padding-bottom:4px; }
.sdna-nav-links li a:hover,
.sdna-nav-links li.current-menu-item a{ color:var(--sdna-purple); border-bottom:2px solid var(--sdna-purple); }
.sdna-menu-toggle{ display:none; background:none; border:2px solid var(--sdna-navy); border-radius:8px; padding:8px 10px; cursor:pointer; }
@media(max-width:900px){
  .sdna-nav-links{ display:none; width:100%; }
  .sdna-nav-links.is-open{ display:block; }
  .sdna-nav-links.is-open ul{ flex-direction:column; gap:14px; padding:16px 0; }
  .sdna-menu-toggle{ display:inline-flex; }
  .sdna-nav{ flex-wrap:wrap; }
}

/* Hero */
.sdna-hero{ background:radial-gradient(120% 140% at 15% 10%, #2c1f7a 0%, var(--sdna-navy) 45%, var(--sdna-navy-2) 100%); color:#fff; position:relative; overflow:hidden; }
.sdna-hero .sdna-wrap{ display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; padding:70px 24px; }
@media(max-width:900px){ .sdna-hero .sdna-wrap{ grid-template-columns:1fr; padding:50px 24px; } }
.sdna-eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--sdna-yellow); color:var(--sdna-navy); font-weight:800; font-size:12px; letter-spacing:.5px; padding:8px 16px; border-radius:999px; margin-bottom:22px; }
.sdna-hero h1{ font-size:44px; line-height:1.15; font-weight:800; }
.sdna-hero h1 .sdna-accent{ color:var(--sdna-yellow); }
.sdna-hero p{ color:#c9cbe8; font-size:16px; margin:18px 0 28px; max-width:460px; line-height:1.6; }
.sdna-hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.sdna-hero-checks{ display:flex; gap:22px; margin-top:26px; font-size:13px; color:#c9cbe8; flex-wrap:wrap; }
.sdna-hero-checks span{ display:flex; align-items:center; gap:6px; }
.sdna-hero-img{ position:relative; }
.sdna-photo-frame{ border-radius:20px; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.35); aspect-ratio:5/4; background:linear-gradient(135deg,#3a2ba0,#1b2266); display:flex; align-items:center; justify-content:center; color:#c9cbe8; font-size:13px; text-align:center; padding:20px; }
.sdna-ribbon{ position:absolute; left:0; right:0; bottom:-16px; background:var(--sdna-yellow); color:var(--sdna-navy); font-weight:800; font-size:13px; text-align:center; padding:10px 0; border-radius:10px; box-shadow:0 10px 20px rgba(0,0,0,.2); letter-spacing:1px; }

/* Countdown banner */
.sdna-countdown{ background:#fff4c2; border:2px solid var(--sdna-yellow); border-radius:16px; margin:-30px auto 40px; max-width:1180px; padding:18px 26px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; box-shadow:var(--sdna-shadow); position:relative; z-index:5; }
.sdna-countdown-left{ display:flex; align-items:center; gap:16px; }
.sdna-countdown-icon{ width:48px; height:48px; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; box-shadow:var(--sdna-shadow); flex-shrink:0; }
.sdna-tag-live{ background:#ff4d6d; color:#fff; font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px; display:inline-block; margin-bottom:4px; }
.sdna-countdown-left h3{ font-size:17px; font-weight:800; }
.sdna-countdown-left p{ font-size:13px; color:var(--sdna-muted); margin:2px 0 0; }
.sdna-countdown-timers{ display:flex; gap:8px; }
.sdna-timer-box{ background:var(--sdna-navy); color:#fff; border-radius:10px; padding:8px 12px; text-align:center; min-width:52px; }
.sdna-timer-box .sdna-num{ font-weight:800; font-size:18px; }
.sdna-timer-box .sdna-lab{ font-size:10px; color:#c9cbe8; }
.sdna-countdown-right{ display:flex; align-items:center; gap:16px; font-size:12px; color:var(--sdna-muted); }

/* Sections & headings */
.sdna-section-title{ text-align:center; margin-bottom:8px; font-size:32px; font-weight:800; color:var(--sdna-navy); }
.sdna-section-sub{ text-align:center; color:var(--sdna-muted); font-size:15px; margin-bottom:40px; }
.sdna-section{ padding:20px 0 60px; }

/* Category grid */
.sdna-cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media(max-width:900px){ .sdna-cat-grid{ grid-template-columns:repeat(2,1fr); } }
.sdna-cat-card{ border-radius:var(--sdna-radius); padding:22px; transition:transform .2s ease, box-shadow .2s ease; }
.sdna-cat-card:hover{ transform:translateY(-4px); box-shadow:var(--sdna-shadow); }
.sdna-cat-card .sdna-icon{ width:44px; height:44px; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:14px; box-shadow:0 4px 10px rgba(0,0,0,.06); }
.sdna-cat-card h4{ font-size:16px; font-weight:800; margin-bottom:4px; }
.sdna-cat-card p{ font-size:12.5px; color:var(--sdna-muted); margin:0 0 10px; }
.sdna-cat-card .sdna-count{ display:inline-block; background:rgba(255,255,255,.7); font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; margin-bottom:10px; }
.sdna-cat-card .sdna-explore{ font-size:13px; font-weight:800; color:var(--sdna-purple); }
.sdna-cat-pink{ background:var(--sdna-pink-bg); }
.sdna-cat-lav{ background:var(--sdna-lav-bg); }
.sdna-cat-mint{ background:var(--sdna-mint-bg); }
.sdna-cat-peach{ background:var(--sdna-peach-bg); }

/* Competition cards */
.sdna-comp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media(max-width:900px){ .sdna-comp-grid{ grid-template-columns:1fr; } }
.sdna-comp-card{ background:#fff; border-radius:var(--sdna-radius); overflow:hidden; box-shadow:var(--sdna-shadow); }
.sdna-comp-media{ height:170px; position:relative; background-size:cover; background-position:center; }
.sdna-comp-media .sdna-open-tag{ position:absolute; top:12px; left:12px; background:var(--sdna-yellow); color:var(--sdna-navy); font-size:11px; font-weight:800; padding:5px 10px; border-radius:999px; }
.sdna-comp-body{ padding:18px 20px 22px; }
.sdna-comp-body h4{ font-size:17px; font-weight:800; margin-bottom:4px; }
.sdna-comp-body .sdna-theme{ font-size:12.5px; color:var(--sdna-purple); font-weight:700; margin-bottom:10px; }
.sdna-comp-meta{ display:flex; gap:16px; font-size:12px; color:var(--sdna-muted); margin-bottom:10px; flex-wrap:wrap; }
.sdna-comp-prize{ font-size:12.5px; color:var(--sdna-navy); font-weight:700; margin-bottom:14px; }
.sdna-comp-footer{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sdna-fill-bar{ height:5px; background:#eee; border-radius:999px; overflow:hidden; margin-top:8px; }
.sdna-fill-bar span{ display:block; height:100%; background:var(--sdna-yellow-dark); }
.sdna-fill-text{ font-size:11px; color:var(--sdna-muted); margin-top:4px; }
.sdna-entry-fee{ font-size:11px; color:#ff4d6d; font-weight:800; }

/* Benefits strip */
.sdna-benefits{ background:#efeafd; }
.sdna-benefits-inner{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; padding:34px 0; }
.sdna-benefits h3{ font-size:24px; font-weight:800; line-height:1.3; flex:1 1 260px; }
.sdna-benefits h3 span{ color:var(--sdna-purple); }
.sdna-benefit-cards{ display:flex; gap:16px; flex:2 1 500px; flex-wrap:wrap; }
.sdna-benefit-card{ background:#fff; border-radius:14px; padding:16px 18px; flex:1 1 130px; box-shadow:var(--sdna-shadow); }
.sdna-benefit-card .sdna-ic{ font-size:20px; margin-bottom:8px; }
.sdna-benefit-card h5{ font-size:13.5px; font-weight:800; margin-bottom:4px; }
.sdna-benefit-card p{ font-size:11.5px; color:var(--sdna-muted); margin:0; }

/* Steps */
.sdna-steps-wrap{ background:#eef1fd; border-radius:24px; padding:50px 40px; }
.sdna-steps-row{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.sdna-step{ flex:1 1 200px; text-align:center; }
.sdna-step .sdna-num{ width:38px; height:38px; border-radius:50%; background:var(--sdna-purple); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 10px; font-size:14px; }
.sdna-step .sdna-ic{ font-size:26px; margin-bottom:8px; }
.sdna-step h5{ font-size:14.5px; font-weight:800; margin-bottom:6px; }
.sdna-step p{ font-size:12px; color:var(--sdna-muted); max-width:180px; margin:0 auto; }
.sdna-steps-cta{ text-align:center; margin-top:36px; }

/* Winners */
.sdna-winners-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:24px; }
@media(max-width:900px){ .sdna-winners-grid{ grid-template-columns:1fr; } }
.sdna-trophy-card{ background:linear-gradient(135deg,#fff6da,#ffe9c2); border-radius:var(--sdna-radius); padding:28px; box-shadow:var(--sdna-shadow); }
.sdna-trophy-card .sdna-trophy-ic{ font-size:54px; text-align:center; margin-bottom:6px; }
.sdna-trophy-card h3{ text-align:center; font-size:20px; margin-bottom:22px; }
.sdna-prize-tiers{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.sdna-tier{ background:#fff; border-radius:12px; padding:14px 10px; text-align:center; }
.sdna-tier .sdna-med{ font-size:20px; }
.sdna-tier h6{ font-size:12px; font-weight:800; margin:6px 0 2px; }
.sdna-tier p{ font-size:10.5px; color:var(--sdna-muted); margin:0; }
.sdna-note-line{ margin-top:16px; font-size:11.5px; color:var(--sdna-muted); text-align:center; }
.sdna-champions-card{ background:#fff; border-radius:var(--sdna-radius); padding:24px; box-shadow:var(--sdna-shadow); }
.sdna-champions-card h3{ font-size:19px; font-weight:800; margin-bottom:18px; }
.sdna-champ-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:18px; }
.sdna-champ{ text-align:center; }
.sdna-champ .sdna-avatar{ width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--sdna-purple-2),var(--sdna-navy)); margin:0 auto 8px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:18px; }
.sdna-champ h6{ font-size:13px; font-weight:800; margin-bottom:2px; }
.sdna-champ p{ font-size:10.5px; color:var(--sdna-muted); margin:0; line-height:1.4; }
.sdna-view-more{ text-align:center; }

/* Testimonials */
.sdna-test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media(max-width:900px){ .sdna-test-grid{ grid-template-columns:1fr; } }
.sdna-test-card{ background:#fff; border-radius:14px; padding:18px 20px; box-shadow:var(--sdna-shadow); }
.sdna-test-role{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.sdna-test-role .sdna-av{ width:34px; height:34px; border-radius:50%; background:var(--sdna-lav-bg); display:flex; align-items:center; justify-content:center; font-size:15px; }
.sdna-test-role h6{ font-size:13px; font-weight:800; }
.sdna-test-card p{ font-size:12.5px; color:var(--sdna-muted); line-height:1.5; margin:0 0 8px; font-style:italic; }
.sdna-stars{ color:var(--sdna-yellow-dark); font-size:13px; }

/* Partner banner */
.sdna-partner-banner{ background:linear-gradient(90deg,var(--sdna-purple),#4324c9); color:#fff; border-radius:20px; padding:30px 34px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.sdna-partner-banner h3{ font-size:22px; margin-bottom:6px; }
.sdna-partner-banner p{ font-size:13.5px; color:#e2d9ff; margin:0 0 4px; }
.sdna-partner-list{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:#e2d9ff; margin-top:8px; }

/* Gallery */
.sdna-gallery{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
@media(max-width:700px){ .sdna-gallery{ grid-template-columns:repeat(3,1fr); } }
.sdna-gallery div{ aspect-ratio:1/1; border-radius:12px; background:linear-gradient(135deg,#7b5cf7,#131a4a); opacity:.85; }

/* Footer */
.sdna-site-footer{ background:var(--sdna-navy); color:#c9cbe8; padding:50px 0 20px; }
.sdna-footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.3fr; gap:24px; margin-bottom:30px; }
@media(max-width:900px){ .sdna-footer-grid{ grid-template-columns:repeat(2,1fr); } }
.sdna-site-footer h6{ color:#fff; font-size:14px; margin-bottom:12px; }
.sdna-site-footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; font-size:13px; }
.sdna-site-footer p{ font-size:13px; line-height:1.6; }
.sdna-subscribe-row{ display:flex; margin-top:10px; }
.sdna-subscribe-row input{ flex:1; border:none; border-radius:8px 0 0 8px; padding:10px 12px; font-size:13px; }
.sdna-subscribe-row button{ border:none; border-radius:0 8px 8px 0; background:var(--sdna-yellow); color:var(--sdna-navy); font-weight:800; padding:0 16px; cursor:pointer; }
.sdna-social-row{ display:flex; gap:10px; margin-top:14px; }
.sdna-social-row a{ width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:14px; }
.sdna-footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:16px; text-align:center; font-size:12px; color:#8b8fbd; }

/* Generic content (blog/page fallback when not built with Elementor) */
.sdna-entry-content{ max-width:820px; margin:0 auto; padding:60px 24px; line-height:1.7; }
.sdna-entry-content h1{ font-size:32px; margin-bottom:20px; }
.sdna-entry-content img{ border-radius:12px; margin:20px 0; }
.sdna-widget-title{ font-size:14px; text-transform:uppercase; letter-spacing:.5px; }

/* Elementor canvas / full-width helpers */
.elementor-page .sdna-site-header,
.elementor-page .sdna-site-footer{ display:none; }
