/*
Theme Name: SSC RRB Premium V4
Author: ExamDW
Version: 4.0
Description: Full-width SSC & Railway exam preparation theme with smooth exam ticker and working student login/register.
*/

:root{
 --navy:#032c52;--navy-deep:#021d37;--blue:#0878c9;--blue2:#0b5d96;
 --red:#f20d2f;--red2:#ff3150;--yellow:#ffd21c;--green:#13aa77;
 --bg:#f3f7fc;--white:#fff;--text:#102b4d;--muted:#66788c;--line:#d9e4ee;
}
*{box-sizing:border-box}
html,body{margin:0!important;padding:0!important;width:100%;max-width:100%;overflow-x:hidden}
body{font-family:Arial,"Noto Sans Devanagari",sans-serif;background:var(--bg);color:var(--text)}
body.wp-admin-bar{margin-top:0}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
img{max-width:100%;height:auto}
.edw-full{width:100%}
.edw-inner{width:min(1220px,96%);margin:auto}

/* ================= TOP EXAM TICKER ================= */
.exam-ticker{
 width:100%;height:38px;background:var(--navy-deep);color:#fff;
 overflow:hidden;border-bottom:1px solid #ffffff1a;
}
.ticker-track{
 height:100%;display:flex;width:max-content;align-items:center;
 animation:sscrrbTicker 48s linear infinite;
}
.exam-ticker:hover .ticker-track{animation-play-state:paused}
.ticker-group{display:flex;align-items:center;white-space:nowrap}
.ticker-label{
 position:sticky;left:0;z-index:2;background:var(--red);
 height:100%;display:flex;align-items:center;padding:0 17px;
 font-size:12px;font-weight:900;box-shadow:7px 0 15px #0003;
}
.exam-pill{
 display:inline-flex;align-items:center;gap:6px;padding:0 18px;
 height:38px;font-size:11px;font-weight:700;border-right:1px solid #ffffff18;
}
.exam-pill:hover{background:#ffffff12;color:var(--yellow)}
@keyframes sscrrbTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ================= HEADER ================= */
.site-header{
 background:#fff;border-bottom:1px solid var(--line);
 box-shadow:0 3px 16px #062d5010;position:sticky;top:0;z-index:9990;
}
.header-row{min-height:72px;display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;gap:9px;min-width:215px}
.logo-mark{
 width:52px;height:52px;min-width:52px;border-radius:50%;
 display:grid;place-items:center;background:linear-gradient(145deg,#eaf8ff,#cde9f9);
 border:2px solid #d4eaf8;font-size:27px;
}
.logo-name{font-size:29px;font-weight:950;line-height:25px;letter-spacing:-1px}
.logo-name .ssc{color:var(--navy)}.logo-name .rrb{color:var(--red)}
.logo-tag{font-size:9px;color:#6c7d90;margin-top:5px;display:block}
.header-search{
 height:42px;flex:1;max-width:350px;display:flex;border:1px solid var(--line);
 border-radius:24px;background:#f5f8fc;overflow:hidden;
}
.header-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;padding:0 15px;font-size:12px}
.header-search button{width:48px;border:0;background:var(--navy);color:#fff;cursor:pointer}
.header-search button:hover{background:var(--red)}
.desktop-nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.desktop-nav>a,.more-button{
 border:0;background:transparent;color:#203550;font-size:11px;font-weight:600;
 padding:16px 7px;white-space:nowrap;cursor:pointer;
}
.desktop-nav>a:hover,.more-button:hover{color:var(--red)}
.nav-active{color:var(--red)!important;border-bottom:3px solid var(--red)}
.nav-login{
 border:1px solid var(--navy)!important;border-radius:7px!important;
 padding:9px 15px!important;margin-left:5px;
}
.nav-login:hover{background:var(--navy)!important;color:#fff!important}
.nav-register{
 background:var(--red)!important;color:#fff!important;border-radius:7px!important;
 padding:10px 14px!important;margin-left:3px;
}
.nav-register:hover{background:#c90c27!important}
.more-wrap{position:relative}
.more-dropdown{
 display:none;position:absolute;right:0;top:53px;width:240px;background:#fff;
 border:1px solid var(--line);border-radius:10px;padding:7px;
 box-shadow:0 18px 45px #001c3830;
}
.more-wrap.open .more-dropdown{display:block}
.more-dropdown a{display:block;padding:10px 12px;font-size:12px;border-radius:7px}
.more-dropdown a:hover{background:#f1f6fb;color:var(--red)}
.menu-button{
 display:none;border:0;background:transparent;color:var(--navy);font-size:31px;
 width:45px;height:45px;cursor:pointer;line-height:1;
}

/* ================= MOBILE NAV ================= */
.mobile-nav{
 display:none;background:#fff;border-top:1px solid var(--line);
 box-shadow:0 15px 35px #001d4220;padding:8px 12px 15px;
}
.mobile-nav.open{display:block}
.mobile-nav a,.mobile-more-btn{
 display:block;width:100%;padding:13px 14px;border:0;background:#fff;text-align:left;
 border-radius:7px;color:#203550;font-size:14px;cursor:pointer;
}
.mobile-nav a:hover,.mobile-more-btn:hover{background:#f5f8fc}
.mobile-nav .mobile-active{background:#fff0f2;color:var(--red)}
.mobile-login,.mobile-register{text-align:center!important;margin-top:5px}
.mobile-login{border:1px solid var(--navy)!important}
.mobile-register{background:var(--red)!important;color:#fff!important}
.mobile-more-list{display:none;background:#f7f9fc;border-radius:8px;padding:5px 8px}
.mobile-more-list.open{display:block}
.mobile-more-list a{font-size:12px;padding:10px}

/* ================= HERO ================= */
.hero{
 background:
 linear-gradient(90deg,#032b50 0%,#07527f 26%,#eaf6ff 50%,#07527f 74%,#032b50 100%);
}
.hero-inner{min-height:455px;display:grid;grid-template-columns:27% 46% 27%;align-items:stretch}
.hero-side{padding:28px 25px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.hero-side .hero-symbol{font-size:52px}
.hero-side h2{font-size:43px;margin:3px 0}
.hero-side h4{font-size:14px;margin:0 0 10px}
.hero-side .yellow{color:var(--yellow);font-size:16px;font-weight:900;margin-bottom:9px}
.hero-side ul{list-style:none;margin:0;padding:0}
.hero-side li{font-size:13px;margin:6px 0}
.hero-side li:before{
 content:"✓";display:inline-grid;place-items:center;width:18px;height:18px;
 border-radius:50%;background:var(--yellow);color:#09294a;font-weight:900;margin-right:7px;
}
.hero-card{
 align-self:center;background:#fff;border-radius:18px;padding:28px 30px;
 text-align:center;box-shadow:0 18px 50px #001e4030;color:var(--navy);
}
.hero-welcome{font-size:18px;font-weight:800}
.hero-title{font-size:51px;line-height:1.05;margin:4px 0 4px;font-weight:950;letter-spacing:-2px}
.hero-title .red{color:var(--red)}
.hero-subtitle{font-size:20px;line-height:1.25;font-weight:700;margin:0 0 16px}
.hero-features{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:11px;overflow:hidden}
.hero-feature{padding:11px 4px;font-size:10px;border-right:1px solid var(--line)}
.hero-feature:last-child{border-right:0}
.hero-feature b{display:block;font-size:20px;margin-bottom:3px}
.hero-actions{display:flex;justify-content:center;gap:8px;margin:16px 0 9px}
.hero-login,.hero-create{
 min-width:125px;padding:10px 16px;border-radius:7px;font-size:12px;font-weight:900;
 cursor:pointer;display:inline-block;
}
.hero-login{border:1px solid var(--navy);color:var(--navy);background:#fff}
.hero-login:hover{background:var(--navy);color:#fff}
.hero-create{border:1px solid var(--red);background:var(--red);color:#fff}
.hero-create:hover{background:#c90c27}
.hero-cta{
 display:block;width:78%;margin:0 auto;background:var(--red);color:#fff!important;
 padding:13px 18px;border-radius:8px;font-size:17px;font-weight:950;
 box-shadow:0 9px 23px #f20d2f42;
}
.hero-cta:hover{background:#c90c27;transform:translateY(-1px)}
.motto{font-size:15px;font-style:italic;font-weight:900;margin-top:10px}

/* ================= STATS ================= */
.stats{background:#fff;padding:12px 0}
.stats-grid{
 display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);
 border-radius:10px;overflow:hidden;
}
.stat{min-height:72px;background:#f8fbff;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px}
.stat:last-child{border-right:0}
.stat-icon{font-size:23px}
.stat b{display:block;color:var(--blue);font-size:18px}
.stat span{display:block;color:var(--muted);font-size:10px}

/* ================= CONTENT ================= */
.main{padding:20px 0 35px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:17px}
.section{margin-bottom:20px}
.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}
.section-head h2{font-size:21px;margin:0}
.section-head p{font-size:11px;color:var(--muted);margin:3px 0 0}
.view-all{color:var(--blue);font-size:12px;font-weight:700}
.tabs{display:flex;margin-bottom:10px}
.tab{padding:10px 26px;border:1px solid var(--line);background:#fff;font-weight:800;cursor:pointer}
.tab:first-child{border-radius:7px 0 0 7px}.tab:last-child{border-radius:0 7px 7px 0}
.tab.active{background:var(--red);color:#fff;border-color:var(--red)}
.exam-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.exam-card{
 background:#fff;border:1px solid var(--line);border-radius:9px;text-align:center;
 padding:11px 6px;transition:.2s;
}
.exam-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #001e4015}
.exam-icon{width:45px;height:45px;border-radius:50%;margin:0 auto 7px;display:grid;place-items:center;color:#fff;font-size:19px;background:linear-gradient(135deg,#f20d2f,#ff667a)}
.exam-card:nth-child(2) .exam-icon{background:linear-gradient(135deg,#f28a1e,#ffb15b)}
.exam-card:nth-child(3) .exam-icon{background:linear-gradient(135deg,#0877d9,#46a5ff)}
.exam-card:nth-child(4) .exam-icon{background:linear-gradient(135deg,#0aaa79,#3bc995)}
.exam-card:nth-child(5) .exam-icon{background:linear-gradient(135deg,#f13d2d,#ff7665)}
.exam-card:nth-child(6) .exam-icon{background:linear-gradient(135deg,#9632c2,#c45dde)}
.exam-card h3{font-size:12px;margin:0}.exam-card p{font-size:10px;color:#6a7889;min-height:26px;margin:3px 0 7px}
.start-test{display:block;border:1px solid var(--line);border-radius:5px;padding:6px;color:var(--blue);font-size:10px;font-weight:900}
.exam-card:hover .start-test{background:var(--blue);color:#fff}
.side-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:12px}
.side-card h3{font-size:17px;margin:0 0 5px}.side-card p{font-size:11px;color:var(--muted);margin:0 0 11px}
.side-actions{display:flex;gap:7px}.side-actions a{flex:1;text-align:center;padding:9px 4px;background:var(--red);color:#fff;border-radius:6px;font-size:11px;font-weight:800}
.side-actions .outline{background:#fff;color:var(--blue);border:1px solid var(--blue)}
.checks{list-style:none;padding:0;margin:5px 0}.checks li{font-size:11px;margin:8px 0}.checks li:before{content:"✓";display:inline-grid;place-items:center;width:18px;height:18px;background:var(--green);color:#fff;border-radius:50%;margin-right:6px;font-weight:900}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.feature{padding:13px;border:1px solid var(--line);border-radius:9px;background:#fff}
.feature:nth-child(1){background:#e8faf2}.feature:nth-child(2){background:#fff0f2}.feature:nth-child(3){background:#edf5ff}.feature:nth-child(4){background:#fff5e5}
.feature b{font-size:12px}.feature p{font-size:10px;color:#5d6d80;margin:4px 0}.feature a{font-size:11px;color:var(--blue);font-weight:900}
.success{
 background:linear-gradient(100deg,#042d56,#08659d);color:#fff;border-radius:11px;
 padding:19px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 20px;
}
.success h2{font-size:21px;margin:0}.success strong{font-size:27px;color:var(--yellow)}.success p{font-size:11px;margin:3px 0}
.success a{background:var(--red);color:#fff!important;border-radius:7px;padding:10px 16px;font-size:11px;font-weight:900;white-space:nowrap}
.updates{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.update{background:#fff;border:1px solid var(--line);border-radius:9px;padding:13px}.update b{font-size:12px}.update small{display:block;color:#68788c;font-size:9px;margin-top:6px}.update a{display:block;color:var(--blue);font-size:10px;font-weight:800;margin-top:8px}

/* ================= FOOTER ================= */
.site-footer{background:linear-gradient(180deg,#032f52,#021f39);color:#d8e6f3;padding:32px 0 13px}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:24px}
.footer-brand{font-size:29px;font-weight:950}.footer-brand .rrb{color:var(--red)}.footer-tag{font-size:10px}.footer-motto{color:var(--yellow);font-size:12px;font-weight:900}
.site-footer h4{color:#fff;font-size:14px;margin:0 0 11px}.site-footer a{display:block;color:#d8e6f3;font-size:11px;margin:8px 0}.site-footer a:hover{color:var(--yellow)}
.footer-bottom{border-top:1px solid #ffffff20;margin-top:24px;padding-top:12px;display:flex;justify-content:space-between;font-size:10px}

/* ================= AUTH ================= */
.auth-overlay{display:none;position:fixed;inset:0;background:#00172db5;z-index:100000;align-items:center;justify-content:center;padding:15px}
.auth-overlay.show{display:flex}
.auth-box{width:min(440px,100%);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 80px #0005}
.auth-top{background:linear-gradient(110deg,var(--navy),#086ba9);color:#fff;padding:18px 20px;display:flex;justify-content:space-between;align-items:center}
.auth-top h3{margin:0;font-size:20px}.auth-close{border:0;background:none;color:#fff;font-size:27px;cursor:pointer}
.auth-content{padding:20px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:16px}
.auth-tab{flex:1;border:0;background:#fff;padding:11px;font-weight:900;color:var(--muted);cursor:pointer}
.auth-tab.active{color:var(--red);border-bottom:3px solid var(--red)}
.auth-form{display:none}.auth-form.active{display:block}.auth-form label{display:block;font-size:12px;font-weight:800;margin:11px 0 6px}
.auth-form input[type=text],.auth-form input[type=email],.auth-form input[type=password]{width:100%;height:44px;border:1px solid #cbd9e7;border-radius:7px;padding:0 12px;outline:0}
.auth-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0878c914}
.auth-submit{width:100%;height:45px;margin-top:15px;border:0;border-radius:7px;background:var(--red);color:#fff;font-weight:900;cursor:pointer}
.auth-submit:hover{background:#c90c27}.auth-help{text-align:center;color:var(--muted);font-size:10px;margin-top:9px}
.auth-message{background:#fff3f4;color:#bd1028;padding:9px;border-radius:6px;font-size:12px;margin-bottom:10px}

/* ================= ACCOUNT ================= */
.account-area{min-height:55vh;padding:35px 0}.account-card{max-width:720px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:0 10px 30px #001e4012}
.account-card h1{margin-top:0}.account-info{display:grid;grid-template-columns:1fr 1fr;gap:10px}.account-info div{padding:13px;background:#f5f8fc;border:1px solid var(--line);border-radius:8px}.logout{display:inline-block;margin-top:15px;padding:10px 18px;background:var(--red);color:#fff!important;border-radius:7px}

/* ================= RESPONSIVE ================= */
@media(max-width:1100px){
 .desktop-nav>a:nth-child(n+3){display:none}
 .exam-grid{grid-template-columns:repeat(3,1fr)}
 .hero-inner{grid-template-columns:25% 50% 25%}
}
@media(max-width:820px){
 .edw-inner{width:100%}
 .exam-ticker{height:35px}
 .ticker-label{padding:0 12px;font-size:10px}
 .exam-pill{height:35px;padding:0 13px;font-size:10px}
 .ticker-track{animation-duration:42s}
 .header-row{min-height:62px;padding:0 13px;gap:7px}
 .logo{min-width:0;flex:1}.logo-mark{width:42px;height:42px;min-width:42px;font-size:22px}.logo-name{font-size:22px;line-height:20px}.logo-tag{font-size:7px}
 .header-search,.desktop-nav{display:none}.menu-button{display:block;margin-left:auto}
 .mobile-nav{display:none}.mobile-nav.open{display:block}
 .hero-inner{display:block;min-height:0}
 .hero-side{display:none}
 .hero-card{margin:16px 14px;padding:24px 14px;border-radius:17px}
 .hero-welcome{font-size:17px}.hero-title{font-size:38px}.hero-subtitle{font-size:17px}
 .hero-features{grid-template-columns:1fr 1fr}
 .hero-feature:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .hero-feature:nth-child(2){border-right:0}
 .hero-feature{min-height:78px;display:flex;flex-direction:column;justify-content:center}
 .hero-actions{margin-top:13px}.hero-login,.hero-create{min-width:0;flex:1}
 .hero-cta{width:94%;font-size:15px}
 .stats{padding:10px 10px}.stats-grid{grid-template-columns:1fr 1fr}.stat{min-height:76px}.stat:nth-child(2n){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat:last-child{grid-column:1/-1;border-top:0}
 .main{padding:17px 0 30px}.content-grid{display:block}.side-card{display:none}
 .section{padding:0 10px}.section-head h2{font-size:21px}.section-head p{font-size:11px}
 .exam-grid{grid-template-columns:1fr 1fr;gap:10px}.exam-card{min-height:156px;padding:15px 8px}.exam-icon{width:58px;height:58px;font-size:22px}.exam-card h3{font-size:15px}.exam-card p{font-size:12px}.start-test{font-size:12px;padding:8px}
 .feature-grid{grid-template-columns:1fr}.feature{padding:17px 14px}.feature b{font-size:15px}.feature p{font-size:12px}.feature a{font-size:12px}
 .success{margin-left:10px;margin-right:10px;flex-direction:column;text-align:center;padding:27px 14px}.success h2{font-size:24px}.success strong{font-size:28px}.success p{font-size:12px}.success a{font-size:12px}
 .updates{grid-template-columns:1fr}.update{padding:17px 20px}.update b{font-size:14px}.update small,.update a{font-size:12px}
 .site-footer{padding:30px 20px 13px}.footer-grid{grid-template-columns:1fr 1fr;gap:26px 28px}.footer-grid>div:first-child{grid-column:1/-1;border-bottom:1px solid #ffffff20;padding-bottom:13px}.site-footer h4{font-size:14px}.site-footer a{font-size:11px}.footer-bottom{font-size:9px;gap:10px;flex-wrap:wrap}
 .account-info{grid-template-columns:1fr}
}
@media(max-width:420px){
 .header-row{padding:0 9px}.hero-card{margin-left:8px;margin-right:8px}.hero-title{font-size:34px}.hero-subtitle{font-size:16px}.hero-cta{font-size:14px}
 .exam-card{min-height:148px}.footer-grid{gap:24px 17px}
}
