/* GIGW 3.0 Accessibility & Custom CSS Stylesheet */

/* --- Font Size Adjustments --- */
html.font-size-small, 
html.font-size-small body,
html.font-size-small p,
html.font-size-small span,
html.font-size-small a,
html.font-size-small li,
html.font-size-small input,
html.font-size-small label,
html.font-size-small button,
html.font-size-small td,
html.font-size-small th,
html.font-size-small select,
html.font-size-small textarea {
    font-size: 14px !important;
}
html.font-size-small h1 { font-size: 24px !important; }
html.font-size-small h2 { font-size: 20px !important; }
html.font-size-small h3 { font-size: 18px !important; }
html.font-size-small h4 { font-size: 16px !important; }
html.font-size-small h5 { font-size: 14px !important; }
html.font-size-small h6 { font-size: 12px !important; }

html.font-size-normal, 
html.font-size-normal body,
html.font-size-normal p,
html.font-size-normal span,
html.font-size-normal a,
html.font-size-normal li,
html.font-size-normal input,
html.font-size-normal label,
html.font-size-normal button,
html.font-size-normal td,
html.font-size-normal th,
html.font-size-normal select,
html.font-size-normal textarea {
    font-size: 16px !important;
}
html.font-size-normal h1 { font-size: 28px !important; }
html.font-size-normal h2 { font-size: 24px !important; }
html.font-size-normal h3 { font-size: 20px !important; }
html.font-size-normal h4 { font-size: 18px !important; }
html.font-size-normal h5 { font-size: 16px !important; }
html.font-size-normal h6 { font-size: 14px !important; }

html.font-size-large, 
html.font-size-large body,
html.font-size-large p,
html.font-size-large span,
html.font-size-large a,
html.font-size-large li,
html.font-size-large input,
html.font-size-large label,
html.font-size-large button,
html.font-size-large td,
html.font-size-large th,
html.font-size-large select,
html.font-size-large textarea {
    font-size: 18px !important;
}
html.font-size-large h1 { font-size: 32px !important; }
html.font-size-large h2 { font-size: 28px !important; }
html.font-size-large h3 { font-size: 24px !important; }
html.font-size-large h4 { font-size: 22px !important; }
html.font-size-large h5 { font-size: 20px !important; }
html.font-size-large h6 { font-size: 18px !important; }

/* --- Multilingual Switching --- */
/* By default, hide Gujarati elements */
html:not([data-lang="gu"]) .lang-gu {
    display: none !important;
}
/* When language is Gujarati, hide English elements */
html[data-lang="gu"] .lang-en {
    display: none !important;
}

/* --- High Contrast Theme --- */
body.contrast-high {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
}

body.contrast-high *,
body.contrast-high div,
body.contrast-high section,
body.contrast-high header,
body.contrast-high footer,
body.contrast-high nav,
body.contrast-high table,
body.contrast-high tr,
body.contrast-high td,
body.contrast-high th,
body.contrast-high h1,
body.contrast-high h2,
body.contrast-high h3,
body.contrast-high h4,
body.contrast-high h5,
body.contrast-high h6,
body.contrast-high p,
body.contrast-high span,
body.contrast-high label {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.contrast-high a,
body.contrast-high a *,
body.contrast-high button,
body.contrast-high button * {
    background-color: #000000 !important;
    color: #00ffff !important;
    text-decoration: underline !important;
    border: 1px solid #00ffff !important;
}

body.contrast-high a:hover,
body.contrast-high button:hover {
    background-color: #00ffff !important;
    color: #000000 !important;
    text-decoration: none !important;
}

body.contrast-high input,
body.contrast-high select,
body.contrast-high textarea {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffff00 !important;
}

body.contrast-high .badge,
body.contrast-high .badge * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

body.contrast-high img {
    filter: grayscale(100%) contrast(200%) !important;
}

/* Specific elements exclusions/styles in contrast mode */
body.contrast-high .top-strip {
    border-bottom: 2px solid #ffff00 !important;
}
body.contrast-high .header-main {
    border-bottom: 1px solid #ffff00 !important;
}

/* --- Skip to Main Content Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #ffff00;
    color: #000000;
    padding: 8px 15px;
    z-index: 99999;
    transition: top 0.2s ease;
    font-weight: bold;
    border: 1px solid #000;
}
.skip-link:focus {
    top: 10px;
    outline: 2px solid #00ffff;
}

/* --- Accessibility Toolbar styles --- */
.top-strip {
    background-color: #0c1a40;
    color: #ffffff;
    font-size: 13px;
    padding: 6px 0;
}
.top-strip a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.top-strip a:hover {
    color: #ffc107;
}
.top-strip .btn-link {
    color: #ffffff;
    padding: 0 4px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    background: none;
}
.top-strip .btn-link:hover {
    color: #ffc107;
    text-decoration: none;
}
.top-strip .border-right-light {
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* Custom premium styles for the revamped layouts */
.header-main {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav-bar-custom {
    background-color: #1e379e;
}
.nav-bar-custom .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 12px 18px !important;
}
.nav-bar-custom .nav-link:hover,
.nav-bar-custom .nav-item.active .nav-link {
    background-color: rgba(255,255,255,0.1);
    color: #ffc107 !important;
}

/* Search input container */
.search-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.search-container input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    font-size: 14px;
}
.search-container .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
}

/* Banner section */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1e379e 0%, #0c1a40 100%);
    color: #ffffff;
    overflow: hidden;
    min-height: 320px;
}
.hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(circle at 20% 30%, #ffffff 1px, transparent 1px),
                      radial-gradient(circle at 75% 60%, #ffffff 1px, transparent 1px);
    background-size: 20px 20px;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
}
.banner-leader {
    max-height: 320px;
    object-fit: contain;
    z-index: 2;
}

/* Service cards grid */
.section-title {
    font-weight: 700;
    color: #0c1a40;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 25px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #ffc107;
}

.custom-service-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    color: #333333;
}
.custom-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #1e379e;
    color: #1e379e;
}
.custom-service-card .card-icon {
    font-size: 28px;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
}
.custom-service-card.card-p1 .card-icon { background-color: #fff3cd; color: #ffc107; }
.custom-service-card.card-p2 .card-icon { background-color: #d4edda; color: #28a745; }
.custom-service-card.card-p3 .card-icon { background-color: #d1ecf1; color: #17a2b8; }
.custom-service-card.card-p4 .card-icon { background-color: #cce5ff; color: #007bff; }
.custom-service-card.card-p5 .card-icon { background-color: #f8d7da; color: #dc3545; }
.custom-service-card.card-p6 .card-icon { background-color: #e2e3e5; color: #6c757d; }

.custom-service-card p {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

/* Statistics cards */
.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #1e379e;
}
.stat-icon {
    font-size: 24px;
    color: #1e379e;
    margin-right: 15px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background-color: rgba(30, 55, 158, 0.1);
    border-radius: 50%;
    text-align: center;
}
.stat-info h3 {
    font-weight: 700;
    color: #0c1a40;
    margin: 0;
    font-size: 20px;
}
.stat-info p {
    color: #6c757d;
    margin: 0;
    font-size: 13px;
}

/* Announcement card */
.announcement-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.announcement-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.announcement-body {
    padding: 10px 20px;
}
.announcement-item {
    border-bottom: 1px solid #f1f3f5;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-text {
    font-size: 14px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
}
.announcement-text:hover {
    color: #1e379e;
    text-decoration: underline;
}
.announcement-date {
    font-size: 11px;
    color: #999999;
    margin-top: 5px;
}

/* Trust statement box */
.trust-box {
    background-color: #e8f0fe;
    border: 1px solid #cedefd;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}
.trust-icon {
    font-size: 24px;
    color: #1e379e;
    margin-right: 15px;
}
.trust-text p {
    margin: 0;
}

/* Footer structure */
.main-footer-revamp {
    background-color: #0c1a40;
    color: #ffffff;
    padding: 45px 0 20px 0;
    border-top: 4px solid #ffc107;
}
.main-footer-revamp h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    color: #ffffff;
}
.main-footer-revamp h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ffc107;
}
.main-footer-revamp .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer-revamp .footer-links li {
    margin-bottom: 10px;
}
.main-footer-revamp .footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.main-footer-revamp .footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}
.main-footer-revamp .footer-contact {
    font-size: 14px;
    color: #cccccc;
}
.main-footer-revamp .footer-contact i {
    color: #ffc107;
    width: 20px;
}

.bottom-footer-strip {
    background-color: #071029;
    color: #999999;
    padding: 15px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bottom-footer-strip a {
    color: #999999;
    text-decoration: none;
    margin: 0 10px;
}
.bottom-footer-strip a:hover {
    color: #ffffff;
}

/* Split Login Layout Classes */
.login-split-container {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}
.login-left-brand {
    flex: 0 0 40%;
    max-width: 40%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    border-right: 1px solid #e9ecef;
    position: relative;
}
.login-left-brand::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/bg_login_sketch.png'); /* fallback or custom overlay style */
    opacity: 0.05;
    pointer-events: none;
}
.login-right-form {
    flex: 0 0 60%;
    max-width: 60%;
    background: radial-gradient(circle at 80% 20%, #1e379e 0%, #0c1a40 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.login-white-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 440px;
    padding: 24px 35px 20px 35px;
    margin: auto;
}

/* Compact layout styling overrides for screens wider than mobile to prevent scrolling */
@media (min-width: 992px) {
    .login-white-card .bg-light.text-primary {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 0.5rem !important;
    }
    .login-white-card h4 {
        font-size: 1.35rem !important;
        margin-bottom: 0.25rem !important;
    }
    .login-white-card p.text-muted.small {
        margin-bottom: 0.5rem !important;
    }
    .login-white-card .mx-auto.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    .login-white-card .d-flex.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    .login-white-card .tab-btn {
        padding: 8px 12px !important;
    }
    .login-white-card .form-group.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    .login-white-card .form-group.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    .login-input-group .form-control {
        height: 40px !important;
    }
    .login-input-group .input-icon {
        font-size: 12px !important;
    }
    .dntCaptcha input.text-box {
        height: 40px !important;
    }
    .dntCaptchaImgContainer img {
        height: 40px !important;
    }
    .dntCaptcha a {
        height: 40px !important;
        width: 40px !important;
    }
    .login-white-card button[type="submit"] {
        height: 42px !important;
        font-size: 14px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .login-white-card hr.my-4 {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    .login-white-card .text-right.mt-3 {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 991px) {
    .login-left-brand {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: auto;
        padding: 30px;
    }
    .login-right-form {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 30px 15px;
    }
}

/* Disable scrolling on login pages for screens wider than mobile */
@media (min-width: 992px) {
    html, body.login-page-body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        height: 100vh !important;
    }
    body.login-page-body .login-split-container {
        height: 100vh !important;
        overflow: hidden !important;
    }
}

/* Ensure Captcha Reload button displays pointer cursor and standard styling */
.dntCaptcha {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}
.dntCaptcha input.text-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}
.dntCaptchaImgContainer {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}
.dntCaptchaImgContainer img {
    border-radius: 6px !important;
    height: 46px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.dntCaptcha a {
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 16px !important;
    color: #495057 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 46px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    margin: 0 !important;
    transition: all 0.2s !important;
}
.dntCaptcha a:hover {
    background-color: #e9ecef !important;
    color: #1e379e !important;
    border-color: #bbbbbb !important;
}
.dntCaptcha .text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}


