/* Averroes Education Custom Styles */
/* Brand Colors: Deep Green #0F3D2E, Emerald #1F7A63, Gold #D4AF37, Light #F8F9F7 */

/* ========================================
   OVERRIDE TEMPLATE CSS VARIABLES
   ======================================== */
:root {
    --theme: #0F3D2E !important;           /* Deep Green - Primary */
    --theme-2: #1F7A63 !important;          /* Emerald - Secondary */
    --header: #0F3D2E !important;           /* Deep Green for headers */
    --text: #535761 !important;             /* Body text */
    --text-2: #0F3D2E !important;           /* Accent text */
    --bg: #F8F9F7 !important;               /* Light background */
    --bg-2: #0F3D2E !important;            /* Deep Green background */
    --border: #D4AF37 !important;          /* Gold borders */
}

/* ========================================
   TEXT CONTRAST ENHANCEMENTS
   ======================================== */

/* Text Shadow for readability over images */
.hero-content h1,
.hero-content h2,
.hero-content h6,
.hero-content p,
.breadcrumb-title,
.video-content h2,
.section-title.text-white h2,
.section-title.text-white .sub-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Dark overlay enhancement for sections with text over images */
.bg-cover {
    position: relative;
}

.bg-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 61, 46, 0.6); /* Deep green tint overlay */
    z-index: 1;
}

.bg-cover .container,
.bg-cover .container-fluid {
    position: relative;
    z-index: 2;
}

/* Enhanced contrast for specific sections */
.feature-section.bg-cover::before {
    background: rgba(15, 61, 46, 0.75); /* Darker for destination cards */
}

.video-section::before {
    background: rgba(0, 0, 0, 0.5);
}

.counter-section::before {
    background: rgba(15, 61, 46, 0.7);
}

/* Breadcrumb section contrast */
.breadcrumb-section {
    position: relative;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 61, 46, 0.65);
    z-index: 1;
}

.breadcrumb-section .breadcrumb-wrapper {
    position: relative;
    z-index: 2;
}

/* Ensure white text is pure white for contrast */
.text-white,
.hero-content h1,
.hero-content p,
.destination-card h3,
.destination-card p,
.counter-item h2,
.counter-item h5,
.counter-item p,
.breadcrumb-title {
    color: #fff !important;
}

/* Dark text on light backgrounds - ensure strong contrast */
.section-title h2,
.about-content h2,
.service-item h3 a,
.why-item h4,
.pathway-content h4,
.faq-content h2 {
    color: #0F3D2E !important;
    text-shadow: none;
}

/* Sub-titles with better contrast */
.sub-title {
    background: rgba(31, 122, 99, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

/* Gold accent text - ensure visibility */
.text-gold {
    color: #D4AF37 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Service/Program cards text contrast */
.service-item .number {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* FAQ accordion enhanced contrast */
.accordion-button {
    font-weight: 600;
    color: #0F3D2E;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0F3D2E, #1F7A63);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.accordion-body p {
    color: #333;
    line-height: 1.8;
}

/* Footer text contrast */
.footer-widget p,
.footer-widget ul li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-widget h5 {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Destination cards - ensure text readability */
.destination-card {
    background: rgba(15, 61, 46, 0.85); /* More opaque for text contrast */
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.destination-card h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.destination-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Button text contrast */
.theme-btn {
    font-weight: 600;
    text-shadow: none;
}

.theme-btn:hover {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Webinar and Parent sections - already have gradients, enhance text */
.webinar-content h2,
.parent-content h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.webinar-content p,
.parent-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* ========================================
   GLOBAL OVERRIDES
   ======================================== */

/* Theme Button - Primary Action */
.theme-btn {
    background: transparent;
    color: #0F3D2E;
    border: 1px solid #0F3D2E;
}

.theme-btn i {
    background-color: #0F3D2E;
    color: #D4AF37;
}

.theme-btn:hover {
    background-color: #0F3D2E;
    color: #fff;
}

.theme-btn:hover i {
    background-color: #D4AF37;
    color: #0F3D2E;
}

/* Theme Button Style 2 - Gold Accent */
.theme-btn.style-2 {
    background: #D4AF37;
    color: #0F3D2E;
    border: 1px solid #D4AF37;
}

.theme-btn.style-2:hover {
    background: #0F3D2E;
    color: #D4AF37;
    border-color: #0F3D2E;
}

/* Section Sub-titles */
.section-title .sub-title {
    color: #1F7A63;
}

/* Section Headings */
.section-title h2,
.split-text-right {
    color: #0F3D2E !important;
}

/* Text Selection Color */
::selection {
    background: #1F7A63;
    color: #fff;
}

/* Links */
a {
    color: #0F3D2E;
}

a:hover {
    color: #1F7A63;
}

/* Preloader - Brand Colors */
#preloader {
    background: #0F3D2E;
}

.txt-loading .letters-loading {
    color: #D4AF37;
}

/* Header/Nav */
.header-1 {
    background: #fff;
}

.main-menu ul li a {
    color: #0F3D2E;
}

.main-menu ul li a:hover,
.main-menu ul .has-dropdown:hover > a {
    color: #1F7A63;
}

/* Dropdown Menu */
.main-menu ul li .submenu {
    background: #0F3D2E;
    border-top: 3px solid #D4AF37;
}

.main-menu ul li .submenu li a {
    color: #fff;
}

.main-menu ul li .submenu li a:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, #0F3D2E 0%, #1F7A63 100%) !important;
}

.breadcrumb-title {
    color: #fff;
}

/* Service Section - Programs */
.service-wrapper {
    background: #F8F9F7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-wrapper:hover {
    background: #fff;
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.1);
}

.service-wrapper.active {
    background: transparent;
}

.service-item .number {
    color: #D4AF37;
    font-size: 3rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.service-wrapper:hover .service-item .number {
    color: #0F3D2E;
    transform: scale(1.1);
}

.service-item h3 a {
    color: #0F3D2E;
    transition: all 0.3s ease;
    font-weight: 600;
}

.service-wrapper:hover .service-item h3 a {
    color: #D4AF37;
}

.service-item .right-item p {
    color: #666;
    transition: all 0.3s ease;
}

.service-wrapper:hover .service-item .right-item p {
    color: #333;
}

.service-item .right-item .service-btn {
    color: #0F3D2E;
    transition: all 0.3s ease;
}

.service-wrapper:hover .service-item .right-item .service-btn {
    color: #D4AF37;
    font-weight: 600;
}

.service-btn:hover {
    color: #D4AF37;
}

/* Active state text colors */
.service-wrapper.active .service-item .left-item .number {
    color: #D4AF37;
}

.service-wrapper.active .service-item .left-item h3 a {
    color: #fff;
}

.service-wrapper.active .service-item .right-item p {
    color: rgba(255, 255, 255, 0.9);
}

.service-wrapper.active .service-item .right-item .service-btn {
    color: #D4AF37;
}

/* Mouse-following gradient effect */
.service-wrapper {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer;
}

.service-wrapper:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(31, 122, 99, 0.2) 100%);
}

/* Accordion/FAQ */
.accordion-button:not(.collapsed) {
    background: #0F3D2E;
    color: #fff;
}

.accordion-button:not(.collapsed)::after {
    color: #D4AF37;
}

/* Counter Section - Text over background image */
.counter-item h2 {
    color: #D4AF37;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.counter-item.style-2 h2 {
    color: #D4AF37;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.counter-item h5 {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.counter-item p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Footer Links */
.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget ul li a:hover {
    color: #D4AF37;
}

/* Social Icons */
.social-icon a {
    background: #1F7A63;
    color: #fff;
}

.social-icon a:hover {
    background: #D4AF37;
    color: #0F3D2E;
}

/* Back to Top Button */
#back-top {
    background: #0F3D2E;
    color: #D4AF37;
}

#back-top:hover {
    background: #1F7A63;
    color: #fff;
}

/* Form Inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: #0F3D2E !important;
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1) !important;
}

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */

/* Destination Cards - High Contrast for Background Images */
.destination-card {
    background: rgba(15, 61, 46, 0.92); /* Deep green with high opacity for contrast */
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.destination-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 61, 46, 0.98);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.destination-card h3 {
    color: #fff !important;
    font-size: 22px;
    margin: 20px 0 15px;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.destination-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.destination-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    color: #D4AF37;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.destination-card .service-btn {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.destination-card .service-btn:hover {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Pathway Section */
.pathway-section {
    background: #F8F9F7;
}

.pathway-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pathway-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 61, 46, 0.1);
}

.pathway-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0F3D2E, #1F7A63);
}

.pathway-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0F3D2E, #1F7A63);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Cinzel', serif;
}

.pathway-content h4 {
    color: #0F3D2E;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.pathway-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Why Averroes Section */
.why-section {
    background: #fff;
    padding: 100px 0;
}

.why-item {
    background: #F8F9F7;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-item:hover {
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 61, 46, 0.08);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0F3D2E, #1F7A63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #D4AF37;
}

.why-item h4 {
    color: #0F3D2E;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.why-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Webinar & Parent Sections */
.webinar-section, .parent-section {
    background: linear-gradient(135deg, #0F3D2E 0%, #1F7A63 100%);
    padding: 80px 0;
}

.webinar-content h2, .parent-content h2 {
    color: #fff;
    font-family: 'Cinzel', serif;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.webinar-content p, .parent-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Webinar list items */
.webinar-content ul li {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Parent guidance section items */
.parent-content h5 {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.parent-content small {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.parent-content i {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366 !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
}

/* Footer Updates */
.footer-section {
    background: #0F3D2E;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .destination-card,
    .pathway-item,
    .why-item {
        margin-bottom: 20px;
    }
}

/* Typography Enhancement */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Times New Roman', serif;
}

body, p, span, a {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* Gold Accent Text */
.text-gold {
    color: #D4AF37 !important;
}

/* Deep Green Background */
.bg-deep-green {
    background-color: #0F3D2E !important;
}

/* Emerald Background */
.bg-emerald {
    background-color: #1F7A63 !important;
}

/* Apply Now Button - Better Design */
.apply-now-btn {
    background: linear-gradient(135deg, #0F3D2E, #1F7A63) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(15, 61, 46, 0.3) !important;
    text-shadow: none !important;
}

.apply-now-btn i {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    margin-left: 0 !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

.apply-now-btn:hover {
    background: linear-gradient(135deg, #1F7A63, #0F3D2E) !important;
    color: #D4AF37 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 61, 46, 0.4) !important;
}

.apply-now-btn:hover i {
    background: #D4AF37 !important;
    color: #0F3D2E !important;
}
