/* ==========================================================================
   Default / Public Page Redesign
   Consistent with corp-redesign.css management theme (skin-mint)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');

/* --- Base Reset for Public Pages --- */
body {
    font-family: 'Open Sans', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    -webkit-font-smoothing: antialiased;
}

/* --- Navbar (matches corp-redesign) --- */
.mainmenu-wrapper {
    background-color: #4c8551 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.mainmenu-wrapper .container {
    width: 100% !important;
    max-width: 1400px;
}

#mainmenu > ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#mainmenu > ul > li > a {
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 18px !important;
    transition: background 0.25s, color 0.25s;
    text-decoration: none;
    letter-spacing: 0.5px;
}

#mainmenu > ul > li > a:hover {
    background-color: #6CD483 !important;
    color: #fff !important;
}

#mainmenu > ul > li.logo-wrapper > a {
    padding: 8px 16px !important;
    background: #fff !important;
    border-radius: var(--radius-md, 8px);
    border-right: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

#mainmenu > ul > li.logo-wrapper > a:hover {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22) !important;
}

#mainmenu > ul > li.logo-wrapper img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

/* --- Breadcrumb Bar --- */
.section-breadcrumbs {
    background: var(--clr-breadcrumb-bg) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--clr-border);
    min-height: 0;
}

.section-breadcrumbs h1 {
    color: #4c8551 !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    margin: 8px 0;
    letter-spacing: 0.3px;
}

/* --- Hero / Registration Section --- */
.hero-section {
    background: linear-gradient(135deg, #f0faf3 0%, #e8f5ec 100%);
    border-bottom: 3px solid #4c8551;
    padding: 40px 0 30px;
    text-align: center;
}

.hero-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.hero-section p.hero-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 28px;
}

/* --- Registration Card --- */
.reg-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.reg-card .no-reg-message {
    font-size: 16px;
    color: #888;
    padding: 20px 0;
}

.reg-card .table {
    margin-bottom: 0;
}

.reg-card .table td {
    vertical-align: middle !important;
    border-top: 1px solid #f0f0f0;
    padding: 12px 10px;
}

.reg-card .btn-red {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 600;
    padding: 10px 24px;
    font-size: 14px;
    transition: all 0.25s;
}

.reg-card .btn-red:hover {
    background: #c82333 !important;
    box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}

.reg-card .btn-orange {
    background: #ff7000 !important;
    border-color: #ff7000 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 600;
    padding: 10px 24px;
    font-size: 14px;
}

.reg-card .btn-orange:hover {
    background: #e06300 !important;
    box-shadow: 0 2px 8px rgba(255,112,0,0.3);
}

/* --- Login Button --- */
.login-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-row a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4c8551;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(76,133,81,0.25);
}

.login-row a:hover {
    background: #3d6e44;
    box-shadow: 0 4px 14px rgba(76,133,81,0.35);
    transform: translateY(-1px);
}

.login-row a img {
    width: 24px;
    height: 24px;
}

/* --- Remob Section --- */
.remob-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 24px 30px;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.remob-notice {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff7000;
    border-radius: 6px;
    padding: 18px 24px;
    max-width: 800px;
    margin: 0 auto 16px;
    text-align: left;
}

.remob-notice span {
    font-size: 16px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    color: #c70d0d !important;
}

.remob-notice a {
    color: #160872;
    font-weight: 600;
    font-size: 14px !important;
}

/* --- Service Cards --- */
.services-section {
    padding: 50px 0 40px;
    background: #fff;
}

.services-section h2.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.services-section h2.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4c8551;
    margin: 10px auto 0;
    border-radius: 2px;
}

.service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: #4c8551;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0faf3;
    border-radius: 50%;
}

.service-card .icon-wrap img {
    max-width: 36px;
    max-height: 36px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* --- Guidelines Section --- */
.guidelines-section {
    padding: 50px 0 40px;
    background: #f5f6f8;
}

.guidelines-section h2.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.guidelines-section h2.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4c8551;
    margin: 10px auto 0;
    border-radius: 2px;
}

.guideline-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.guideline-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.guideline-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.guideline-card .card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f0faf3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guideline-card .card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.guideline-card .card-body {
    padding: 16px 20px;
}

.guideline-card .card-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* --- Info Links Section --- */
.info-section {
    padding: 50px 0 40px;
    background: #fff;
}

.info-section h2.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.info-section h2.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4c8551;
    margin: 10px auto 0;
    border-radius: 2px;
}

.info-card {
    background: #fafbfc;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border-color: #4c8551;
}

.info-card .info-icon {
    font-size: 32px;
    color: #4c8551;
    margin-bottom: 14px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.info-card a {
    display: inline-block;
    color: #4c8551;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid #4c8551;
    border-radius: 4px;
    transition: all 0.2s;
    margin-top: 4px;
}

.info-card a:hover {
    background: #4c8551;
    color: #fff;
}

/* --- YouthPlus Ad Banner --- */
.ad-banner {
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ad-banner img {
    width: 100%;
    display: block;
}

/* --- Footer (matches corp-redesign) --- */
.footer {
    background: #2c2c2c !important;
    color: #aaa;
    padding: 15px 0;
    margin-top: 0;
}

.footer-copyright {
    color: #999;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    padding: 8px 0;
}

.footer-copyright a {
    color: #ccc;
    transition: color 0.2s;
}

.footer-copyright a:hover {
    color: #fff;
}

/* --- Modal Redesign --- */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: #4c8551;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 16px 24px;
    border-bottom: none;
}

.modal-header .modal-title {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 14px 24px;
}

/* AjaxToolkit Modal Popup */
.PopupBody {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border: none !important;
}

.ModalPopupBG {
    background: rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
}

/* Registration Options Modal */
.PopupBody .modal-header {
    background: #4c8551;
    border-radius: 8px 8px 0 0;
    padding: 16px 24px;
}

.PopupBody .modal-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.PopupBody .modal-body .row {
    margin-bottom: 8px;
}

.PopupBody .btn-red {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 600;
}

.PopupBody .btn-primary {
    background: #c49a0a !important;
    border-color: #c49a0a !important;
    border-radius: 4px !important;
    font-weight: 600;
}

/* --- Section spacing --- */
.section-white {
    background: transparent !important;
    padding: 0 !important;
}

.section {
    margin-bottom: 0 !important;
}

/* --- Form controls --- */
input[type="text"]:focus,
input[type="password"]:focus,
.form-control:focus {
    border-color: #92d4a0 !important;
    box-shadow: 0 0 0 2px rgba(76,133,81,0.15) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 28px 15px 20px;
    }

    .hero-section h2 {
        font-size: 20px;
    }

    .reg-card, .remob-card, .remob-notice {
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px 16px;
    }

    .service-card, .guideline-card, .info-card {
        margin-bottom: 16px;
    }

    .login-row a {
        padding: 10px 24px;
        font-size: 14px;
    }

    #mainmenu > ul > li > a {
        font-size: 12px;
        padding: 10px 12px !important;
    }
}
