/* 
 * Custom Styles for Bootstrap 5 Conversion
 * Theme: Preschool and Kindergarten (Shubham Stock Broking)
 */

body, h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, div, input, textarea, button {
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

/* Restore Icons */
.fa, .fas, .far, .fab {
    font-family: 'FontAwesome' !important;
}

body {
    color: #000000;
    background-color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

/* Force Black Table Borders Globally */
table, .table, .table-bordered, .table-bordered td, .table-bordered th, .table-bordered tr {
    border-color: #000000 !important;
}

/* Make Tables More Attractive */
.table {
    margin-bottom: 2rem;
    background-color: #fff;
}

.table th {
    padding: 12px 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Global Table Header Style */
.table thead, .table th {
    background-color: #025296 !important;
}

.table thead th, .table th {
    background-color: #025296 !important;
    color: #ffffff !important;
    border-color: #004080 !important;
    vertical-align: middle;
}

.table td {
    padding: 12px 15px !important;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(2, 82, 150, 0.05) !important;
    transition: background-color 0.2s ease;
}

/* Custom List Styles in Content Area */
.content-area ul:not(.list-unstyled):not(.breadcrumb) {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.content-area ul:not(.list-unstyled):not(.breadcrumb) > li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-area ul:not(.list-unstyled):not(.breadcrumb) > li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: #333;
    font-size: 10px;
}

.content-area ul ul {
    margin-top: 10px;
    margin-left: 5px;
}

.content-area ul ul > li::before {
    content: "▪";
    font-size: 8px;
    top: 4px;
}

.content-area ol:not(.breadcrumb) {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.content-area ol:not(.breadcrumb) > li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Force square bullets even for some unstyled lists if needed, or just let user decide */
.why-list li, .grievance-list li {
    line-height: 1.8;
}

/* Force Black Text Color Globally for content */

/* Force Black Text Color Globally for content */
.content-area, .content-area p, .content-area li, .content-area span, .content-area td, .content-area th,
.sidebar-widget, .sidebar-widget p, .sidebar-widget span, .sidebar-widget li {
    color: #000000 !important;
}

a {
    text-decoration: none;
    color: #337ab7;
}

a:hover, a:focus {
    color: #41aad4;
    text-decoration: none;
}

/* Header Top (.header-t) */
.header-t {
    background: #f9f9f9 url('../images/line.png') repeat-x 0 100%;
    padding: 10px 0 15px; /* Adjust padding to leave room for the line at the bottom */
}

.header-t .contact-info li a {
    color: #333333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-t .contact-info li a:hover {
    color: #41aad4;
}

.header-t .social-networks li {
    margin-left: 15px;
}

.header-t .social-networks li a {
    color: #919191;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-t .social-networks li a:hover {
    color: #41aad4;
}

/* Header Bottom (.header-b) */
.bg-theme-blue {
    background-color: #0d5aa7; /* Dark blue from the screenshot */
}

.header-b {
    padding: 23px 0;
}

.site-branding .custom-logo {
    max-height: 100px; /* Constrain logo height */
    width: auto;
}

/* Navigation (.main-navigation) */
.main-navigation {
    margin-top: 15px;
}

.custom-nav-links .nav-item {
    margin-right: 15px;
    margin-bottom: 10px;
}

.custom-nav-links .nav-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 0 0 5px 0 !important;
    position: relative;
    transition: color 0.3s;
}

.custom-nav-links .nav-link:hover,
.custom-nav-links .current-menu-item .nav-link {
    color: #41aad4;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .header-b {
        padding: 15px 0;
    }
    .custom-nav-links .nav-item {
        margin-right: 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .custom-nav-links .nav-link {
        padding: 10px 15px !important;
    }
}

/* Hero Banner Slider */
.banner {
    position: relative;
}
.custom-slider-control {
    width: 50px;
    height: 50px;
    background-color: rgba(220, 160, 160, 0.7); /* Pinkish gray from screenshot */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-slider-control:hover {
    background-color: rgba(220, 160, 160, 1);
}

.custom-slider-control .fa {
    font-size: 24px;
    color: white;
}

/* Position Owl Carousel Nav */
.banner-slider img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .banner-slider img {
        height: auto;
        min-height: 250px;
        object-fit: cover;
    }
}

.banner-slider .owl-nav {
    margin: 0 !important;
}
.banner-slider .owl-prev {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}
.banner-slider .owl-next {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* Position Owl Carousel Dots */
.custom-sidebar-list a:hover {
    color: #0d5aa7 !important;
    text-decoration: underline !important;
}

.banner-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}
.banner-slider .owl-dot {
    display: inline-block;
}
.banner-slider .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    background: transparent !important;
    border: 2px solid white;
    border-radius: 50%;
    display: block;
    transition: opacity 200ms ease;
}
.banner-slider .owl-dots .owl-dot.active span, 
.banner-slider .owl-dots .owl-dot:hover span {
    background: white !important;
}

/* Custom Corner Titles (rcorners3, rcorners4 from original) */
.custom-corner-title {
    border-radius: 10px;
    background: #025296;
    padding: 15px 25px;
    width: 250px;
    min-height: 50px;
    height: auto;
    box-sizing: border-box;
    color: #ffffff;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    background-color: #4eb2d4 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    min-width: 250px;
}
.custom-dropdown .dropdown-item {
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}
.custom-dropdown .dropdown-item:hover {
    background-color: rgba(0,0,0,0.05) !important;
}

/* Dropdown Arrow/Triangle */
.custom-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #4eb2d4;
}

/* Hover Dropdown for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Remove default Bootstrap arrow in navbar */
.nav-link.dropdown-toggle::after {
    display: none;
}

.site-footer .custom-corner-title {
    width: 180px; /* rcorners3 equivalent */
}

@media only screen and (max-width: 768px) {
    .custom-corner-title,
    .site-footer .custom-corner-title {
        float: none; 
        width: 100%; 
    }
}

/* Footer Link Styles */
.custom-footer-list a {
    color: #025296;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    padding-left: 12px;
}
.custom-footer-list a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: #025296;
    font-weight: bold;
}
.custom-footer-list a:hover {
    color: #0d5aa7;
    text-decoration: underline;
}

/* Carousel Indicators */
.carousel-indicators.custom-indicators {
    margin-bottom: 20px;
}
.carousel-indicators.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #ffffff;
    opacity: 0.8;
    margin: 0 5px;
}
.carousel-indicators.custom-indicators button.active {
    background-color: #ffffff;
    opacity: 1;
}


/* Active Navigation Link Style */
.navbar-nav .nav-link.active {
    background-color: transparent !important;
    color: #ffffff !important;
    border-bottom: 3px solid #4eb2d4 !important;
    border-radius: 0;
}

/* Accessibility Widget Styling */
.accessibility-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
}

.accessibility-btn {
    width: 50px;
    height: 50px;
    background-color: #025296;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background-color: #4eb2d4;
    transform: scale(1.1);
}

.accessibility-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
}

.accessibility-panel.active {
    display: block;
}

.acc-tool-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-tool-btn:hover {
    background: #e9ecef;
}

/* High Contrast Mode */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.high-contrast .content-area, 
body.high-contrast .sidebar-widget,
body.high-contrast div, 
body.high-contrast p, 
body.high-contrast span, 
body.high-contrast li {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.high-contrast table, 
body.high-contrast td, 
body.high-contrast th {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}


/* Investor Charter Specific Styles */
.investor-charter-container .section-title {
    color: #025296;
    font-weight: bold;
    border-bottom: 2px solid #025296;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.investor-charter-container .table thead th {
    background-color: #d49a3d !important;
    color: #fff !important;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    border: none;
}
.investor-charter-container .table-bordered td, 
.investor-charter-container .table-bordered th {
    border: 1px solid #dee2e6;
}
.investor-charter-container .vision-mission-box {
    padding: 40px 0;
    margin-bottom: 40px;
}
.investor-charter-container .vision-mission-divider {
    height: 2px;
    background-color: #025296;
    position: relative;
    margin: 40px 0;
}
.investor-charter-container .vision-mission-divider::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #025296;
}
.investor-charter-container .vision-mission-title {
    color: #444;
    font-weight: 500;
    font-size: 33px;
    font-family: 'Times New Roman', Times, serif;
}
.investor-charter-container .mission-list {
    list-style: none;
    padding-left: 0;
}
.investor-charter-container .mission-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.investor-charter-container .mission-list li::before {
    content: '\f0c8';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 9px;
    color: #000;
}
