/* --- Base & Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #F5A623; /* Optimistic Orange/Gold Accent */
    --text-color: #333;
    --light-text-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --font-main: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-headings: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-light: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* --- Basic Reset & Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.7; background-color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headings); margin-bottom: 0.7em; color: var(--primary-color); line-height: 1.3; font-weight: 600;}
h1 { font-size: 2.8em; font-weight: 700;}
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1.5em;}
h3 { font-size: 1.4em; color: #444;}
p { margin-bottom: 1.2em; color: #555;}
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); text-decoration: none; } /* No underline on hover */
img { max-width: 100%; height: auto; display: block; }
ul { list-style-position: inside; padding-left: 5px; margin-bottom: 1em;}
ul li { margin-bottom: 0.5em; }
ul li i { margin-right: 8px; color: var(--secondary-color); } /* Icons in lists */
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 70px 0; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.text-center { text-align: center; }
.img-responsive { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--box-shadow-light); }
.required { color: red; margin-left: 2px; }

/* --- Buttons --- */
.button, .cta-button { display: inline-block; padding: 12px 28px; background-color: var(--primary-color); color: var(--light-text-color); border: none; border-radius: 30px; /* Rounded buttons */ font-size: 1em; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; letter-spacing: 0.5px; }
.button:hover, .cta-button:hover { background-color: #004170; color: var(--light-text-color); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 90, 156, 0.3); }
.cta-button { background-color: var(--secondary-color); color: #fff; /* White text on orange */ font-size: 1.1em; padding: 15px 35px; }
.cta-button:hover { background-color: #d98e1f; box-shadow: 0 4px 8px rgba(245, 166, 35, 0.4); }

/* --- Header --- */
header { background-color: #fff; padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8em; font-weight: 700; color: var(--primary-color); text-decoration: none; display: flex; align-items: center; }
.logo img { max-height: 40px; margin-right: 10px; }
nav ul { list-style: none; display: flex; padding-left: 0; }
nav ul li { margin-left: 30px; }
nav ul li a { color: var(--text-color); font-weight: 600; padding-bottom: 5px; position: relative; text-decoration: none; font-size: 0.95em; letter-spacing: 0.3px; }
nav ul li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s ease; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li a.active { color: var(--primary-color); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8em; cursor: pointer; color: var(--primary-color); padding: 0; }
.menu-toggle i { display: block; }

/* --- Hero Section --- */
#hero { position: relative; background-size: cover; background-position: center center; min-height: 75vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-text-color); background-attachment: fixed; /* Parallax effect */ }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 40, 80, 0.6); z-index: 1; }
#hero .container { position: relative; z-index: 2; }
#hero h1 { font-size: 3.2em; margin-bottom: 0.3em; color: var(--light-text-color); text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
#hero p { font-size: 1.3em; margin-bottom: 1.5em; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Page Header (for internal pages) --- */
.page-header { text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 40px; margin-bottom: 40px; }
.page-header h1 { font-size: 2.6em; }
.page-header p { font-size: 1.1em; color: #666; max-width: 700px; margin: 0 auto; }

/* --- Card Grid (Destinations, Programs) --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-grid.large-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } /* For program page */
.card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--box-shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card .card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card .card-content h3 { margin-bottom: 0.5em; font-size: 1.3em; }
.card .card-content p { font-size: 0.95em; color: #666; flex-grow: 1; margin-bottom: 1em; }
.card .card-content ul { font-size: 0.9em; color: #555; padding-left: 5px; list-style: none; margin-bottom: 1.5em; }
.card .card-content ul li i { font-size: 0.8em; width: 15px; text-align: center;}
.card .card-content .button { margin-top: auto; /* Pushes button to bottom */ align-self: flex-start; /* Aligns button left */ font-size: 0.9em; padding: 8px 20px; }

/* --- Features Grid (Why Us / Services) --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-item i { font-size: 2.8em; color: var(--secondary-color); margin-bottom: 15px; display: inline-block; }
.feature-item h3 { font-size: 1.3em; margin-bottom: 0.5em; }
.feature-item p { font-size: 0.95em; color: #666; }

/* --- Content Split Layout (About Us) --- */
.content-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; align-items: center; }

/* --- How It Works / Process Steps --- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; margin-top: 30px; }
.step .step-icon { width: 80px; height: 80px; background-color: var(--primary-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5em; margin: 0 auto 20px auto; box-shadow: 0 4px 8px rgba(0, 90, 156, 0.2); }
.step h3 { font-size: 1.2em; margin-bottom: 0.5em; }
.step p { font-size: 0.9em; color: #666; }

/* --- Testimonial Slider Specific Styles --- */
/* Uses .professional-slider base from previous example */
.testimonial-slider .slide { padding: 30px 50px; display: flex; flex-direction: column; align-items: center; background-color: var(--bg-light); }
.testimonial-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.testimonial-quote { font-size: 1.1em; font-style: italic; color: #555; margin-bottom: 15px; max-width: 700px; line-height: 1.6; position: relative; padding: 0 10px; }
.testimonial-quote::before { content: "\201C"; /* Left quote */ font-size: 3em; color: var(--primary-color); position: absolute; left: -15px; top: -10px; opacity: 0.5; }
.testimonial-quote::after { content: "\201D"; /* Right quote */ font-size: 3em; color: var(--primary-color); position: absolute; right: -15px; bottom: -15px; opacity: 0.5; }
.testimonial-author { font-weight: 600; color: var(--primary-color); font-size: 1em; margin-top: 10px; }
/* Adjust nav/dots for testimonial context if needed */
.testimonial-slider.professional-slider .slider-nav { background-color: rgba(0, 90, 156, 0.3); }
.testimonial-slider.professional-slider .slider-nav:hover { background-color: rgba(0, 90, 156, 0.6); }
.testimonial-slider.professional-slider .dot { background-color: rgba(0, 90, 156, 0.4); }
.testimonial-slider.professional-slider .dot.active { background-color: rgba(0, 90, 156, 0.8); }

/* --- Forms --- */
.styled-form { background-color: #fff; padding: 30px 40px; border-radius: 8px; box-shadow: var(--box-shadow-light); border: 1px solid var(--border-color); }
.styled-form h2 { text-align: left; margin-bottom: 1.5em; font-size: 1.8em;}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; font-size: 0.95em;}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1em; font-family: var(--font-main); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px;}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
/* Form feedback messages */
.form-feedback { margin-bottom: 20px; padding: 15px; border-radius: 5px; font-weight: 500; border: 1px solid transparent; }
.form-feedback.success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.form-feedback.error { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.styled-form .button { display: block; width: auto; /* Don't force full width */ margin-top: 10px;}


/* --- Map Container --- */
.map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color);}

/* --- Footer --- */
footer { background-color: #2c3e50; /* Dark Blue-Gray */ color: #bdc3c7; /* Light Gray text */ padding: 60px 0 20px; margin-top: 60px; font-size: 0.95em;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; margin-bottom: 1.2em; font-size: 1.25em; font-weight: 600;}
footer ul { list-style: none; padding-left: 0; }
footer ul li { margin-bottom: 12px; }
footer ul li a { color: #bdc3c7; }
footer ul li a:hover { color: var(--secondary-color); }
footer p { color: #bdc3c7; margin-bottom: 0.8em; line-height: 1.6;}
footer p i { margin-right: 10px; width: 15px; text-align: center; color: var(--secondary-color); } /* Footer icons */
.social-links { display: flex; gap: 15px; padding-left: 0; list-style: none;}
.social-links li a { color: #bdc3c7; font-size: 1.3em; transition: color 0.3s ease; }
.social-links li a:hover { color: var(--secondary-color); }
.newsletter-title { margin-top: 20px; }
.newsletter-form { display: flex; margin-top: 10px; max-width: 300px;}
.newsletter-form input { flex-grow: 1; padding: 10px; border: 1px solid #4a627a; border-radius: 5px 0 0 5px; background-color: #3b5065; color: #fff; font-size: 0.9em; }
.newsletter-form button { padding: 10px 15px; border-radius: 0 5px 5px 0; font-size: 0.9em; white-space: nowrap; background-color: var(--secondary-color); color: #fff;}
.newsletter-form button:hover { background-color: #d98e1f; }
.copyright { text-align: center; margin-top: 40px; padding-top: 25px; border-top: 1px solid #4a627a; font-size: 0.9em; color: #95a5a6; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    #hero h1 { font-size: 2.8em; }
    .content-split { grid-template-columns: 1fr; }
    .content-split > div:last-child { /* Stack image below text on about page */ order: -1; margin-bottom: 30px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    nav ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #fff; flex-direction: column; padding: 10px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); }
    nav.active ul { display: flex; }
    nav ul li { margin: 0; text-align: center; }
    nav ul li a { padding: 12px 15px; display: block; border-bottom: 1px solid var(--border-color); }
    nav ul li:last-child a { border-bottom: none; }
    nav ul li a::after { display: none; }
    .menu-toggle { display: block; }
    #hero { min-height: 60vh; }
    #hero h1 { font-size: 2.4em; }
    #hero p { font-size: 1.1em; }
    .card-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .process-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid > div { margin-bottom: 20px; }
    .social-links { justify-content: center; }
    .newsletter-form { margin: 10px auto 0 auto; }
    .styled-form { padding: 20px; }
    .styled-form h2 { font-size: 1.6em; }
    /* Adjust testimonial slider padding */
    .testimonial-slider .slide { padding: 20px; }
    .testimonial-quote::before, .testimonial-quote::after { font-size: 2.5em; }
}


/* --- Slider Base Styles (Include from previous professional slider example) --- */
.professional-slider.slider-container { /* Styles for the main container */
    position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); background-color: #eee;
}
.professional-slider .slider-wrapper { /* Wrapper for slides */
    display: flex; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.professional-slider .slide { /* Individual Slide */
    width: 100%; flex-shrink: 0; position: relative; overflow: hidden; background-color: #fff;
}
.professional-slider .slider-nav { /* Navigation Buttons */
    position: absolute; top: 50%; transform: translateY(-50%); /* ... rest of nav button styles */
    padding: 10px; font-size: 1.8em; cursor: pointer; z-index: 10; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease,opacity .3s ease; opacity: 0; border: none; color: white; background-color: rgba(0,0,0,.3);
}
.professional-slider:hover .slider-nav { opacity: 1;}
.professional-slider .slider-nav:hover { background-color: rgba(0,0,0,.6); }
.professional-slider .prev-button { left: 20px; }
.professional-slider .next-button { right: 20px; }
.professional-slider .slider-dots { /* Navigation Dots */
    position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; z-index: 5;
}
.professional-slider .dot { /* Individual Dot */
    display: inline-block; width: 10px; height: 10px; background-color: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.1); border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background-color .3s ease,transform .2s ease;
}
.professional-slider .dot.active { /* Active Dot */
    background-color: rgba(255,255,255,.9); transform: scale(1.2);
}
/* Add responsive adjustments for slider nav/dots if needed */
@media(max-width: 768px){
    .professional-slider .slider-nav{ opacity: .7; width: 40px; height: 40px; font-size: 1.5em;}
    .professional-slider .prev-button{ left: 10px;}
    .professional-slider .next-button{ right: 10px;}
    .professional-slider .slider-dots{ bottom: 10px;}
    .professional-slider .dot{ width: 8px; height: 8px;}
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-top: 20vh;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: flex-start; /* Align content box to the left */
    z-index: 1001; /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.popup-overlay.popup-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Ensure visibility transition is immediate on show */
}

/* The actual content box */
.popup-contact-content {
    position: relative; /* For close button */
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 0 8px 8px 0; /* Round outer corners */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%; /* Responsive width */
    max-width: 400px; /* Max width of the form box */
    margin-left: 0; /* Start flush left */
    transform: translateX(-100%); /* Initially hidden off-screen */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth slide in */
}

.popup-overlay.popup-visible .popup-contact-content {
    transform: translateX(0%); /* Slide in */
}

/* Glitch Effect Target */
.popup-overlay.popup-visible .glitch-target {
    /* Apply animation only when popup becomes visible */
    animation: glitch-effect 0.4s cubic-bezier(.25,.46,.45,.94) 1; /* Run once */
}


/* Glitch Animation */
@keyframes glitch-effect {
    0% {
        transform: translate(0);
        opacity: 1;
    }
    20% { /* Quick jump left */
        transform: translate(-8px, 3px) skewX(-3deg);
        opacity: 0.8;
    }
    40% { /* Quick jump right */
        transform: translate(6px, -2px) skewX(2deg);
        opacity: 1;
    }
    60% { /* Smaller jump */
        transform: translate(-4px, 1px) skewX(-1deg);
        opacity: 0.9;
    }
    80% { /* Another jump */
        transform: translate(3px, -1px) skewX(1deg);
        opacity: 1;
    }
    100% { /* Settle */
        transform: translate(0);
        opacity: 1;
    }
}


.popup-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2.2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}
.popup-close-button:hover {
    color: #333;
}

/* Form styling within popup */
.popup-contact-content h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    text-align: left;
    color: var(--primary-color);
}
.popup-contact-content p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

.popup-form {
    padding: 0;
    box-shadow: none;
    border: none;
    background: none;
}
.popup-form .form-group {
    margin-bottom: 15px;
}
.popup-form label {
    font-size: 0.9em;
}
.popup-form input,
.popup-form textarea {
    padding: 10px 12px;
}
.popup-form .button-small {
    width: 100%;
    text-align: center;
    margin-top: 5px;
}
/* Area specifically for feedback inside popup */
.popup-feedback-area {
    margin-bottom: 15px;
}


/* --- Trigger Button (Fixed Left Tab) --- */
.popup-trigger-button {
    position: fixed;
    left: 0px; /* Flush left */
    top: 65%;
    transform: translateY(-50%) rotate(-90deg); /* Rotate text vertically */
    transform-origin: left top; /* Rotate around top-left corner */
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 0 0 5px 5px; /* Round bottom corners */
    cursor: pointer;
    z-index: 1000; /* Below overlay, above content */
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.popup-trigger-button:hover {
    background-color: #004170; /* Darker blue */
}

.popup-trigger-button i {
    margin-right: 8px;
    display: inline-block;
    transform: rotate(90deg); /* Correct icon orientation */
}
/* --- Form feedback messages (ensure these exist) --- */
.form-feedback {
    margin-bottom: 20px; /* Adjust as needed */
    padding: 10px 15px; /* Adjust as needed */
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.9em; /* Can adjust for footer */
}
.form-feedback.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.form-feedback.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Positioning context for submenu */
header nav ul li {
    position: relative; /* Needed for absolute positioning of sub-menu */
}

/* Submenu basic styling (Hidden by default) */
.sub-menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%; /* Position below the parent */
    left: 0;
    background-color: #fff; /* White background */
    min-width: 220px; /* Minimum width */
    z-index: 1000; /* Ensure it's above content */
    list-style: none;
    padding: 10px 0; /* Padding top/bottom */
    margin: 0;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--secondary-color); /* Accent color top border */
    border-radius: 0 0 5px 5px; /* Round bottom corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Start hidden for transition */
    visibility: hidden;
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Show submenu on hover (Desktop) */
header nav ul li:hover > .sub-menu {
    display: block; /* Show on hover */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Style submenu links */
.sub-menu li {
    margin: 0; /* Reset margin */
    width: 100%;

}

.sub-menu li a {
    display: block; /* Make links full width */
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500; /* Slightly less bold than main nav */
    font-size: 0.9em;
    white-space: nowrap; /* Prevent wrapping */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.sub-menu li a:hover,
.sub-menu li a.active { /* Style active submenu item */
    background-color: var(--bg-light);
    color: var(--primary-color);
}
.sub-menu li a::after {
    display: none; /* Remove underline effect from main nav */
}


/* Parent item styling when child is active */
.menu-item-has-children.active-parent > a {
    color: var(--primary-color); /* Highlight parent if child is active */
    /* Add other styles if desired, like background */
}

/* Dropdown Indicator Icon */
.dropdown-indicator {
    margin-left: 5px;
    font-size: 0.7em; /* Smaller icon */
    transition: transform 0.3s ease;
    display: inline-block; /* Prevents jumping */
}

/* Rotate indicator on hover (optional) */
header nav ul li:hover > a .dropdown-indicator {
    transform: rotate(180deg);
}


/* --- Mobile Dropdown Adjustments --- */
@media (max-width: 768px) {
    /* Submenu styles within the mobile toggle menu */
    nav.active ul .sub-menu {
        display: none; /* Hide by default even when nav is active */
        position: static; /* Not absolute on mobile */
        background-color: #fdfdfd; /* Slightly different background */
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        border-radius: 0;
        opacity: 1; /* Ensure visible when shown */
        visibility: visible;
        transform: none; /* No transition needed */
        width: 100%;
        border-left: 3px solid var(--secondary-color); /* Indent indicator */
    }

    /* Style for parent item on mobile */
    /*nav.active ul .menu-item-has-children > a {*/
    /*    display: flex; !* Align text and indicator *!*/
    /*    justify-content: space-between; !* Push indicator to right *!*/
    /*    align-items: center;*/
    /*    width: 100%;*/

    /*}*/

    nav.active ul .menu-item-has-children > a .dropdown-indicator {
        margin-left: auto; /* Push to right */
        padding-right: 15px; /* Space from edge */
        font-size: 1em; /* Make indicator larger */
        transform: rotate(0deg); /* Reset rotation initially */
        transition: transform 0.3s ease; /* Add transition */
    }
    /* Rotate arrow when dropdown is open on mobile */
    nav.active ul .menu-item-has-children.submenu-open > a .dropdown-indicator {
        transform: rotate(180deg);
    }


    /* Submenu links on mobile */
    nav.active ul .sub-menu li a {
        padding: 10px 20px 10px 30px; /* Indent submenu links */
        font-size: 0.9em;
        border-bottom: 1px solid #eee; /* Separator lines */
        background-color: #f9f9f9;
    }
    nav.active ul .sub-menu li:last-child a {
        border-bottom: none;
    }
    nav.active ul .sub-menu li a:hover,
    nav.active ul .sub-menu li a.active {
        background-color: #efefef;
    }

}
/* --- Service Detail Page Styles --- */
.service-detail .service-content {
    max-width: 900px; /* Limit content width for readability */
    margin: 0 auto;
}

.service-image {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

/* Allow image floating */
.service-image.align-right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    max-width: 45%; /* Adjust max width */
}
.service-image.align-left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    max-width: 45%; /* Adjust max width */
}

/* Clear floats after content */
.service-content::after {
    content: "";
    display: table;
    clear: both;
}

.service-content h2 {
    text-align: left; /* Align headings left */
    margin-bottom: 1em;
    font-size: 2em;
}
.service-content h3 {
    text-align: left;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-size: 1.5em;
    color: var(--primary-color);
}
.service-content ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 1.5em;
}
.service-content ul li {
    padding-left: 25px; /* Indent text */
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}
.service-content ul li i.fa-check { /* Style the check icon */
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertical alignment */
    color: var(--secondary-color); /* Use accent color */
    font-size: 0.9em;
}

.cta-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.cta-section h2 {
    text-align: center;
    margin-bottom: 10px;
}
.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}
.cta-section .button {
    margin: 5px 10px;
}
/* Optional outline button style */
.button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.button-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


/* Clear floats on smaller screens */
@media (max-width: 768px) {
    .service-image.align-right,
    .service-image.align-left {
        float: none;
        display: block;
        margin: 0 auto 30px auto; /* Center image */
        max-width: 90%; /* Adjust width */
    }
    .service-content h2, .service-content h3 {
        text-align: center;
    }
}
/* Header Logo Styling */
header .logo img {
    display: block; /* Or inline-block if needed */
    height: 40px; /* Control the height - width will adjust */
    width: auto;  /* Let width scale based on height */
    max-width: 200px; /* Prevent it getting too wide */
    /* Add margin if needed */
    /* margin-right: 10px; */
}

/* Optional: Style for visually hidden text */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive adjustments for logo if needed */
@media (max-width: 768px) {
    header .logo img {
        height: 35px; /* Slightly smaller on mobile */
        max-width: 160px;
    }
    /* Optional: Hide text part of logo on very small screens */
}
/*header nav > ul {*/
/*    list-style: none;*/
/*    display: flex; !* Already likely there *!*/
/*    align-items: center; !* Add this to vertically align all li elements *!*/
/*    padding-left: 0;*/
/*    margin: 0; !* Reset default ul margin *!*/
/*}*/
/* --- Styling for Programs Page (programs.php) --- */

/* ===== Search Form Section Styles ===== */
.search-form-container {
    /* Styles moved from inline */
    padding: 30px 40px; /* More padding */
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-top: 30px; /* Increased space from header */
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-light);
}

.search-form-container h3 {
    text-align: center;
    margin-bottom: 1.5em; /* More space below heading */
    font-size: 1.5em; /* Slightly larger */
    color: var(--primary-color);
    font-weight: 600;
}

/* Form layout using Flexbox */
.country-search-form {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
    gap: 15px; /* Space between elements */
}

/* Visually hide the label but keep for accessibility */
.country-search-form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.country-search-form input[type="search"] {
    padding: 12px 18px; /* Generous padding */
    border: 1px solid var(--border-color);
    border-radius: 30px; /* Rounded */
    font-size: 1em;
    min-width: 250px; /* Minimum width */
    flex-grow: 1; /* Allow input to grow */
    max-width: 450px; /* Max width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.country-search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}

/* Primary Search Button */
.country-search-form button.button {
    /* Inherits .button styles - ensure base .button has good padding/border-radius */
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* Clear Search Button (Secondary Style) */
.button.button-secondary {
    background-color: #6c757d; /* Gray color */
    border-color: #6c757d;
    color: #fff;
    flex-shrink: 0;
}
.button.button-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}


/* ===== Search Results Info Styles ===== */
.search-results-info {
    text-align: center;
    margin-bottom: 40px; /* Space above the results grid */
    padding: 20px;
    background-color: #e7f0f7; /* Light blue background */
    border: 1px solid #b8d4ea;
    border-radius: 8px;
}
.search-results-info h2 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}
.search-results-info p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 0;
}

/* ===== Card Content Enhancement ===== */

.card-content {
    padding: 25px; /* Ensure consistent padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to push button down */
}

/* Main country heading */
.card-content h3:first-of-type {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 0.8em;
    font-weight: 700;
}

/* "ABOUT..." heading */
.card-content h3:nth-of-type(2) {
    font-size: 1.1em; /* Smaller */
    color: #444;
    margin-bottom: 1em;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color); /* Separator line */
}

/* "IELTS OPTIONAL" heading */
.card-content h4 {
    font-size: 1.05em;
    color: var(--secondary-color); /* Use accent color */
    margin-top: 1.5em; /* Space above */
    margin-bottom: 0.8em;
    font-weight: 700;
    text-transform: uppercase; /* Make it stand out */
}

/* Paragraph text within card */
.card-content p {
    font-size: 0.95em; /* Slightly smaller for readability */
    line-height: 1.7; /* Improve line spacing */
    color: #555;
    margin-bottom: 1em;
}

/* List styling within card */
.card-content ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-top: 0.5em; /* Space above list */
    margin-bottom: 1.5em; /* Space below list */
}

.card-content ul li {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 0.8em; /* Space between list items */
    display: flex; /* Align icon and text */
    align-items: flex-start; /* Align items to the top */
    gap: 8px; /* Space between icon and text */
}

.card-content ul li i.fa-check {
    color: #28a745; /* Green checkmark */
    margin-top: 3px; /* Align icon slightly better with text line */
    flex-shrink: 0; /* Prevent icon shrinking */
}

/* Inquire Button positioning */
.card-content .button.button-small {
    margin-top: auto; /* Push button to the bottom */
    align-self: flex-start; /* Align button to the left */
    font-size: 0.9em;
    padding: 8px 18px;
}


/* --- Responsive Adjustments for Search Form & Card Content --- */

@media (max-width: 768px) {
    .search-form-container {
        padding: 20px;
    }
    .country-search-form input[type="search"] {
        min-width: 200px; /* Adjust min-width */
        width: 100%; /* Maybe full width on mobile */
        margin-bottom: 10px; /* Add space below input when wrapping */
        flex-grow: 0; /* Disable grow when stacked */
    }
    .country-search-form button.button,
    .country-search-form a.button {
        width: 48%; /* Make buttons roughly half width */
        text-align: center;
        padding-left: 5px; /* Adjust padding if text is long */
        padding-right: 5px;
    }
    .search-results-info {
        padding: 15px;
    }
    .search-results-info h2 { font-size: 1.4em; }
    .search-results-info p { font-size: 1em; }

    .card-content {
        padding: 20px;
    }
    .card-content h3:first-of-type { font-size: 1.4em; }
    .card-content h3:nth-of-type(2) { font-size: 1em; }
    .card-content h4 { font-size: 1em; }
    .card-content p,
    .card-content ul li {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .country-search-form button.button,
    .country-search-form a.button {
        width: 100%; /* Stack buttons fully */
    }
    .card-content { padding: 15px; }
}
