/*
Theme Name: N.E. Railway Men's Congress Union
Theme URI: https://example.com/
Author: OpenAI
Description: Simple, fast and editable WordPress theme for N.E. Railway Men's Congress Union.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nerailway-union
*/
:root{--navy:#12345b;--navy2:#0b2949;--red:#ef2b2d;--light:#f4f7fa;--text:#1c2b3d;--muted:#64748b;--white:#fff;--border:#dbe3ec;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.6}img{max-width:100%;height:auto;display:block}a{color:var(--navy);text-decoration:none}a:hover{color:var(--red)}.container{width:min(92%,var(--max));margin:auto}
.topbar{background:var(--navy2);color:#fff;font-size:13px}.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:40px}.top-links{display:flex;gap:10px}.socials{display:flex;gap:14px}.socials a{color:#fff}
.site-header{background:#fff;border-bottom:1px solid #edf1f5}.header-inner{min-height:108px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:18px}.brand img{width:90px;height:90px;object-fit:contain}.brand-title{font-size:30px;line-height:1.05;font-weight:800;color:var(--navy);text-transform:uppercase}.brand-tag{font-size:14px;color:#334155;margin-top:7px;letter-spacing:.5px}.main-nav{display:flex;align-items:center;gap:25px;font-size:14px;font-weight:600}.main-nav a{color:#0d2c50}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--red)}.menu-toggle{display:none;background:none;border:1px solid var(--border);font-size:22px;padding:7px 11px;border-radius:5px}
.hero{position:relative;overflow:hidden;background:#0c2b4a}.hero-slide{display:none;min-height:430px;background-size:cover;background-position:center;position:relative}.hero-slide.active{display:flex}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,32,57,.9),rgba(7,32,57,.45),rgba(7,32,57,.1))}.hero-content{position:relative;z-index:2;color:#fff;align-self:center;padding:60px 0;max-width:650px}.hero-kicker{text-transform:uppercase;font-size:14px;letter-spacing:1px}.hero h1{font-size:48px;line-height:1.05;margin:12px 0 16px}.hero h1 .accent{color:#ff3538}.hero p{font-size:18px;max-width:600px;margin:0 0 25px}.btn{display:inline-flex;align-items:center;gap:12px;padding:12px 22px;border-radius:4px;background:var(--red);color:#fff;font-weight:700;border:0;cursor:pointer}.btn:hover{color:#fff;opacity:.92}.btn.navy{background:var(--navy)}.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;border:0;background:rgba(0,0,0,.35);color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer}.slider-prev{left:20px}.slider-next{right:20px}.slider-dots{position:absolute;z-index:3;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:7px}.slider-dot{width:9px;height:9px;border:0;border-radius:50%;background:rgba(255,255,255,.55);padding:0;cursor:pointer}.slider-dot.active{background:#fff}
.quick-links{padding:18px 0 5px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quick-card{background:#f4f8fc;border:1px solid #e8eef5;border-radius:5px;padding:20px;display:flex;align-items:center;gap:15px;min-height:88px}.quick-icon{font-size:30px;color:var(--navy);width:42px;text-align:center}.quick-card strong{display:block;font-size:15px}.quick-card span{font-size:12px;color:var(--muted)}
.section{padding:55px 0}.section.alt{background:var(--light)}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-title{font-size:24px;margin:0;color:var(--navy);font-weight:800;display:flex;align-items:center;gap:14px}.section-title:before{content:"";display:block;width:30px;height:3px;background:var(--red)}.view-all{font-size:13px;font-weight:600}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}.about-image img{width:100%;max-height:320px;object-fit:cover;border-radius:3px}.about-copy p{margin-top:0}.notices-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.notice-list{border-top:1px solid var(--border)}.notice-row{display:grid;grid-template-columns:70px 1fr auto;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--border)}.notice-date{font-weight:800;color:var(--navy);text-align:center}.notice-date small{display:block;color:var(--muted);font-weight:400}.notice-title{font-weight:700}.download{font-size:13px;color:var(--red);white-space:nowrap}
.leader-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.leader-card{background:#fff;border:1px solid var(--border);padding:20px;text-align:center;border-radius:4px}.leader-card img{width:130px;height:130px;border-radius:50%;object-fit:cover;margin:0 auto 13px;background:#eef2f6}.leader-card h3{font-size:16px;margin:0;color:var(--navy)}.leader-card .designation{font-size:14px;font-weight:700}.leader-card p{font-size:13px;color:var(--muted);margin:8px 0 0}
.news-grid,.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid var(--border);background:#fff;border-radius:4px;overflow:hidden}.card-thumb{aspect-ratio:16/9;object-fit:cover;width:100%;background:#edf2f7}.card-body{padding:17px}.card-meta{font-size:12px;color:var(--muted)}.card h3{font-size:17px;line-height:1.3;margin:7px 0}.card p{font-size:14px;color:#536273;margin:0 0 12px}.event-meta{font-size:13px;color:#536273;margin:4px 0}.event-meta strong{color:var(--navy)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gallery-item{display:block;overflow:hidden;border-radius:4px;background:#eee;aspect-ratio:1/1}.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.gallery-item:hover img{transform:scale(1.03)}
.site-footer{background:var(--navy2);color:#fff;margin-top:0}.footer-main{padding:48px 0;display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:45px}.footer-brand{display:flex;gap:16px;align-items:flex-start}.footer-brand img{width:80px;height:80px}.footer-brand h2{font-size:20px;line-height:1.1;margin:0;color:#fff}.footer-brand p{font-size:12px;margin:8px 0;color:#d9e4ef}.footer-col h3{font-size:15px;margin:0 0 12px;color:#fff}.footer-col a,.footer-col p{color:#d7e2ed;font-size:13px;display:block;margin:5px 0}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:16px 0;font-size:12px}.footer-bottom .container{display:flex;justify-content:space-between;gap:20px}
.page-header{background:var(--light);padding:45px 0}.page-header h1{margin:0;color:var(--navy);font-size:34px}.content-area{padding:45px 0}.post-content{max-width:850px}.post-content h2,.post-content h3{color:var(--navy)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-field{margin-bottom:15px}.form-field.full{grid-column:1/-1}.form-field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px}.form-field input,.form-field textarea,.form-field select{width:100%;padding:11px;border:1px solid var(--border);border-radius:4px;font:inherit}.form-field textarea{min-height:130px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.map-wrap iframe{width:100%;min-height:340px;border:0}.gallery-upload{max-width:650px}.login-box{max-width:450px;margin:auto;border:1px solid var(--border);padding:25px;border-radius:5px}
.whatsapp-float{position:fixed;right:20px;bottom:20px;width:52px;height:52px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;z-index:20;box-shadow:0 5px 15px rgba(0,0,0,.2)}.whatsapp-float:hover{color:#fff}
@media(max-width:900px){.main-nav{gap:14px}.brand-title{font-size:23px}.brand img{width:72px;height:72px}.hero h1{font-size:40px}.quick-grid{grid-template-columns:repeat(2,1fr)}.leader-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid{grid-template-columns:repeat(3,1fr)}.footer-main{grid-template-columns:1fr 1fr}.footer-main>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.topbar{display:none}
/* Header: was a fixed 78px row cramming a 58px logo + full-length uppercase title +
   tagline next to the menu button — on narrow phones the title wrapped to 2–3 lines
   and broke out of the fixed height, throwing off vertical alignment against the
   logo and toggle button. min-height is now flexible, brand text is allowed to
   shrink/wrap cleanly within its own column, and the logo/toggle no longer get
   squeezed by flex-shrink. */
.header-inner{min-height:auto;padding:14px 0;gap:12px}
.brand{gap:12px;flex:1;min-width:0}
.brand img{width:50px;height:50px;flex-shrink:0}
.brand-title{font-size:15px;line-height:1.25;letter-spacing:.2px}
.brand-tag{font-size:10px;margin-top:4px;letter-spacing:.2px}
.menu-toggle{display:block;flex-shrink:0}
.main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;z-index:15;padding:15px 5%;border-top:1px solid var(--border);flex-direction:column;align-items:flex-start}.main-nav.open{display:flex}.site-header{position:relative}.hero-slide{min-height:480px}.hero-content{padding:40px 0}.hero h1{font-size:34px}.hero p{font-size:16px}.quick-grid,.about-grid,.notices-grid,.contact-grid,.news-grid,.event-grid{grid-template-columns:1fr}.leader-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid{grid-template-columns:repeat(2,1fr)}.footer-main{grid-template-columns:1fr}.footer-main>div:first-child{grid-column:auto}.footer-bottom .container{flex-direction:column}.notice-row{grid-template-columns:55px 1fr}.download{grid-column:2}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}}
@media(max-width:380px){.brand img{width:42px;height:42px}.brand-title{font-size:13px}.brand-tag{font-size:9px;margin-top:3px}}
