/* Site-specific fixes on top of the theme (loaded last). */

/* Menu: keep all items on one row; below 1200px the hamburger menu takes over (js/main.js) */
@media (min-width: 1200px) {
    .second-menu .main-menu { margin-right: 0; }   /* theme pulls it 40px past the edge */
    .second-menu .main-menu > nav > ul > li { margin-left: 13px; }
    .second-menu .main-menu > nav > ul > li > a { font-size: 14px; }
    .second-menu .main-menu > nav > ul > li:first-child { margin-left: 0; }
}
@media (min-width: 1400px) {
    .second-menu .main-menu > nav > ul > li { margin-left: 26px; }
    .second-menu .main-menu > nav > ul > li > a { font-size: 16px; }
}
@media (max-width: 1199px) {
    #mobile-menu { display: none; }
    .menu-area { padding: 15px 0; }
}

/* Mobile menu button: match the site's navy */
#header-sticky .mean-container a.meanmenu-reveal { color: #125875; border-color: #125875; }
#header-sticky .mean-container a.meanmenu-reveal span { background: transparent; height: 3px; border-top: 3px solid #125875; }

/* News ticker under the menu (was bright green with white text: hard to read) */
.news-ticker {
    background-color: #125875;
    border-bottom: 3px solid #ff7350;
    padding: 10px 0;
}
.news-ticker a {
    color: #fff;
    font-weight: 600;
    margin-right: 80px;
}
.news-ticker a:hover { color: #ffd2c6; }

/* ---------------------------------------------------------------
   Brand colours
   --------------------------------------------------------------- */
:root {
    --aep-navy: #125875;
    --aep-navy-dark: #032e3f;
    --aep-orange: #ff7350;
    --aep-orange-dark: #e85a36;
    --aep-light: #eff7ff;
    --aep-text: #3d4852;
}

/* ---------------------------------------------------------------
   No sideways scrolling on phones (iOS ignores overflow on body alone)
   --------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 1199px) {
    .main-menu { margin-right: 0 !important; }      /* theme pushes it 40px off-screen */
}
.step-img, .step-img2 { margin-right: 0; }          /* theme pushed these 300px off-screen */

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.copyright-wrap a { color: #fff; text-decoration: none; transition: color .2s; }
.copyright-wrap a:hover, .copyright-wrap a:focus { color: #ffe08a; text-decoration: underline; }
.footer-link ul li a:hover, .f-contact a:hover { color: var(--aep-orange); }
@media (max-width: 991px) {
    .copyright-wrap .text-right { text-align: left !important; margin-top: 6px; }
}

/* ---------------------------------------------------------------
   Home page
   --------------------------------------------------------------- */
.home { color: var(--aep-text); }
.home p { font-size: 16px; line-height: 1.8; color: var(--aep-text); }
.home-section { padding: 90px 0; }
@media (max-width: 767px) { .home-section { padding: 60px 0; } }

.section-kicker {
    display: inline-block; color: var(--aep-orange); font-weight: 600;
    font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.section-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--aep-orange); vertical-align: middle; margin-right: 10px; }
.section-heading { font-size: 36px; line-height: 1.35; color: var(--aep-navy-dark); margin-bottom: 20px; }
@media (max-width: 767px) { .section-heading { font-size: 26px; } }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 45px; }
.section-head .section-kicker::before { display: none; }
.section-note { text-align: center; max-width: 820px; margin: 40px auto 0; font-weight: 500; }

/* Buttons */
.home-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px;
    font-weight: 600; font-size: 16px; border: 2px solid transparent; transition: all .2s; cursor: pointer; line-height: 1.2;
}
.home-btn-primary { background: var(--aep-orange); color: #fff; }
.home-btn-primary:hover { background: var(--aep-orange-dark); color: #fff; }
.home-btn-light { background: #fff; color: var(--aep-navy-dark); }
.home-btn-light:hover { background: var(--aep-light); color: var(--aep-navy-dark); }
.home-btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.home-btn-ghost:hover { background: #fff; color: var(--aep-navy-dark); }
.home-btn-outline { border-color: var(--aep-navy); color: var(--aep-navy); background: transparent; }
.home-btn-outline:hover { background: var(--aep-navy); color: #fff; }

/* News ticker */
.news-ticker { display: flex; align-items: center; padding: 0; }
.news-ticker marquee { flex: 1; padding: 10px 0; min-width: 0; }
.news-ticker-label {
    background: var(--aep-orange); color: #fff; font-weight: 700; padding: 10px 18px;
    white-space: nowrap; align-self: stretch; display: flex; align-items: center; gap: 8px;
}

/* Hero */
.home-hero { position: relative; background: var(--aep-navy-dark); }
.home-hero .carousel-item img { height: clamp(320px, 72vh, 680px); object-fit: cover; }
.home-hero .carousel-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(3,46,63,.85) 0%, rgba(3,46,63,.55) 45%, rgba(3,46,63,.1) 100%);
}
.home-hero-caption { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.home-hero-caption .container > * { max-width: 640px; }
.home-hero-caption a { pointer-events: auto; }
.hero-badge {
    display: inline-block; background: rgba(255,115,80,.95); color: #fff; padding: 6px 16px;
    border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.home-hero-caption h1 { color: #fff; font-size: 52px; line-height: 1.25; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.home-hero-caption p { color: #e6f1f7; font-size: 19px; line-height: 1.7; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .carousel-indicators { z-index: 3; margin-bottom: 70px; }
.home-hero .carousel-control-prev, .home-hero .carousel-control-next { z-index: 3; width: 7%; }
@media (max-width: 767px) {
    .home-hero .carousel-item img { height: 460px; }
    .home-hero .carousel-item::after { background: linear-gradient(0deg, rgba(3,46,63,.92) 0%, rgba(3,46,63,.55) 60%, rgba(3,46,63,.2) 100%); }
    .home-hero-caption { align-items: flex-end; padding-bottom: 60px; }
    .home-hero-caption h1 { font-size: 30px; }
    .home-hero-caption p { font-size: 15px; margin-bottom: 18px; }
    .hero-badge { font-size: 12px; margin-bottom: 12px; }
    .home-btn { padding: 11px 20px; font-size: 15px; }
    .home-hero .carousel-control-prev, .home-hero .carousel-control-next { display: none; }
    .home-hero .carousel-indicators { margin-bottom: 18px; }
}

/* Stats */
.home-stats { position: relative; z-index: 5; margin-top: -55px; }
.stat-card {
    background: #fff; border-radius: 14px; padding: 24px 16px; text-align: center; height: 100%;
    box-shadow: 0 12px 35px rgba(3,46,63,.12); border-bottom: 4px solid var(--aep-orange);
}
.stat-card i { font-size: 30px; color: var(--aep-orange); display: block; margin-bottom: 10px; }
.stat-card strong { display: block; font-size: 34px; color: var(--aep-navy-dark); line-height: 1.1; }
.stat-card span { display: block; font-size: 15px; color: #6b7785; margin-top: 4px; }
@media (max-width: 767px) {
    .home-stats { margin-top: -30px; }
    .stat-card { padding: 16px 8px; }
    .stat-card strong { font-size: 24px; }
    .stat-card i { font-size: 22px; }
}

/* About */
.home-about { padding-top: 110px; }
.about-photo { position: relative; padding: 0 18px 18px 0; }
.about-photo::before { content: ""; position: absolute; right: 0; bottom: 0; width: 80%; height: 80%; background: var(--aep-orange); border-radius: 16px; opacity: .9; }
.about-photo img { position: relative; width: 100%; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.home .lead-text { font-size: 18px; color: var(--aep-navy-dark); font-weight: 500; }
.read-more summary { list-style: none; cursor: pointer; display: inline-block; color: var(--aep-orange); font-weight: 600; margin-bottom: 12px; }
.read-more summary::-webkit-details-marker { display: none; }
.read-more .less, .read-more[open] .more { display: none; }
.read-more[open] .less { display: inline; }
.read-more[open] summary { order: 2; }

/* Objectives */
.home-objectives { background: var(--aep-light); }
.objective-card {
    background: #fff; border-radius: 14px; padding: 24px 22px 22px 22px; height: 100%; display: flex; gap: 16px;
    align-items: flex-start; box-shadow: 0 6px 20px rgba(3,46,63,.06); border: 1px solid #e3eef7; transition: transform .2s, box-shadow .2s;
}
.objective-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,46,63,.12); }
.objective-num {
    flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--aep-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.objective-card:hover .objective-num { background: var(--aep-orange); }
.objective-card p { margin: 0; font-size: 15.5px; line-height: 1.7; }

/* Achievements */
.home-achievements { background: linear-gradient(135deg, var(--aep-navy-dark) 0%, var(--aep-navy) 100%); }
.home-achievements .section-heading { color: #fff; }
.achievement-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.achievement-list li { display: flex; gap: 12px; color: #e3eef5; font-size: 15.5px; line-height: 1.65; }
.achievement-list i { color: var(--aep-orange); font-size: 18px; margin-top: 4px; }
@media (max-width: 767px) { .achievement-list { grid-template-columns: 1fr; } }
.achievement-photo img { width: 100%; border-radius: 16px; box-shadow: 0 20px 45px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.1); }

/* Events */
.event-photo { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #dde8f0; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-photo span {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(3,46,63,.45); color: #fff; font-size: 30px; opacity: 0; transition: opacity .3s;
}
.event-photo:hover img { transform: scale(1.07); }
.event-photo:hover span { opacity: 1; }

/* Clans list */
.home-jatiyan { background: var(--aep-light); }
.jati-tools { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 30px; }
.jati-search { position: relative; width: 100%; max-width: 520px; }
.jati-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #8a97a5; }
.jati-search input {
    width: 100%; padding: 14px 20px 14px 50px; border-radius: 50px; border: 2px solid #d6e3ee;
    font-size: 16px; background: #fff; outline: none; transition: border-color .2s;
}
.jati-search input:focus { border-color: var(--aep-navy); }
.jati-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jati-letters button {
    min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #d6e3ee;
    background: #fff; color: var(--aep-navy-dark); font-weight: 600; font-size: 16px; cursor: pointer; transition: all .15s;
}
.jati-letters button:hover { border-color: var(--aep-navy); }
.jati-letters button.active { background: var(--aep-navy); border-color: var(--aep-navy); color: #fff; }
.jati-list { position: relative; background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 6px 20px rgba(3,46,63,.06); }
.jati-list.collapsed:not(.filtering) { max-height: 560px; overflow: hidden; }
.jati-list.collapsed:not(.filtering)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
    background: linear-gradient(rgba(255,255,255,0), #fff); border-radius: 0 0 16px 16px;
}
.jati-group { margin-bottom: 26px; }
.jati-group h3 {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px;
    background: var(--aep-orange); color: #fff; font-size: 22px; margin-bottom: 14px;
}
.jati-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.jati-group li { background: var(--aep-light); border-radius: 8px; padding: 8px 12px; font-size: 15px; color: var(--aep-navy-dark); font-weight: 500; }
.jati-group li small { color: #8a97a5; font-weight: 400; margin-right: 2px; }
.jati-empty { text-align: center; margin: 20px 0; }
@media (max-width: 767px) {
    .jati-list { padding: 18px; }
    .jati-group ul { grid-template-columns: repeat(2, 1fr); }
    .jati-letters button { min-width: 36px; height: 36px; font-size: 15px; }
}

/* Future plans */
.plan-card {
    position: relative; background: #fff; border-radius: 16px; padding: 30px 26px; height: 100%;
    border: 1px solid #e3eef7; box-shadow: 0 6px 20px rgba(3,46,63,.06); transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.plan-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--aep-orange); transition: width .3s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,46,63,.12); }
.plan-card:hover::after { width: 100%; }
.plan-icon {
    width: 62px; height: 62px; border-radius: 14px; background: rgba(255,115,80,.12); color: var(--aep-orange);
    display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px;
}
.plan-step { display: block; font-size: 13px; font-weight: 700; color: var(--aep-navy); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.plan-card p { margin: 0; font-size: 16px; color: var(--aep-navy-dark); font-weight: 500; }

/* Call to action */
.home-cta { padding: 0 0 90px; }
.home-cta-box {
    background: linear-gradient(120deg, var(--aep-orange) 0%, #ff8f5e 100%); border-radius: 20px; padding: 45px 50px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: 0 18px 40px rgba(255,115,80,.3);
}
.home-cta-box h2 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.home-cta-box p { color: #fff; margin: 0; opacity: .95; }
@media (max-width: 767px) {
    .home-cta { padding-bottom: 60px; }
    .home-cta-box { padding: 30px 24px; }
    .home-cta-box h2 { font-size: 24px; }
}
@media (max-width: 767px) {
    .plan-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
    .plan-icon { flex: 0 0 52px; width: 52px; height: 52px; font-size: 22px; margin-bottom: 0; }
    .home-events .row > div:last-child:nth-child(odd) { flex: 0 0 100%; max-width: 100%; }
    .home-events .row > div:last-child:nth-child(odd) .event-photo { aspect-ratio: 16 / 9; }
}

/* ---------------------------------------------------------------
   Footer (site-wide)
   --------------------------------------------------------------- */
.site-footer { background: var(--aep-navy-dark); color: #b9cad5; position: relative; }
.site-footer::before {   /* thin brand stripe on top */
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--aep-orange) 0%, var(--aep-orange) 33%, var(--aep-navy) 33%, var(--aep-navy) 100%);
}
.site-footer-main { padding: 70px 0 50px; }
.site-footer a { color: #d6e2ea; text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a:focus { color: var(--aep-orange); }

.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.footer-logo img { max-width: 220px; height: auto; display: block; }
.footer-about { color: #b9cad5; font-size: 15px; line-height: 1.85; margin-bottom: 22px; max-width: 380px; }
.site-footer .footer-cta {
    display: inline-flex; align-items: center; gap: 8px; background: var(--aep-orange); color: #fff;
    padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 15px;
}
.site-footer .footer-cta:hover { background: var(--aep-orange-dark); color: #fff; }

.footer-title { color: #fff; font-size: 20px; margin-bottom: 24px; padding-bottom: 12px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--aep-orange); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "\203A"; color: var(--aep-orange); font-size: 18px; line-height: 1; transition: transform .2s; }
.footer-links a:hover::before { transform: translateX(3px); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 15px; line-height: 1.7; }
.footer-contact .icon {
    flex: 0 0 40px; height: 40px; border-radius: 50%; background: rgba(255,115,80,.15); color: var(--aep-orange);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.site-footer-bottom { background: #021f2b; border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.site-footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 10px 30px; flex-wrap: wrap; }
.site-footer-bottom p { margin: 0; font-size: 14px; color: #8fa6b4; line-height: 1.6; }
.site-footer-bottom a { color: #fff; font-weight: 600; }
.site-footer-bottom a:hover, .site-footer-bottom a:focus { color: var(--aep-orange); text-decoration: underline; }

@media (max-width: 767px) {
    .site-footer-main { padding: 50px 0 30px; }
    .site-footer-bottom .container { flex-direction: column; text-align: center; }
}
