/* style.css */

:root {
    --primary-color: #1B8C85; /* Teal - Main Professional Blue/Green */
    --primary-color-darker: #146a63;
    --secondary-color: #F2A900; /* Amber/Orange - Complementary Warm */
    --secondary-color-darker: #d49000;
    --accent-color: #F27405; /* Deep Orange - Split-Complementary Vibrant Accent */
    --accent-color-darker: #d16304;

    --text-color: #3A3A3A; /* Dark Gray for body text - slightly softer than pure #333 */
    --text-color-light: #FFFFFF;
    --headings-color: #222222; /* Very Dark Gray for headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--accent-color);

    --background-color: #FFFFFF;
    --background-color-light: #F8F9FA; /* Very Light Gray for sections */
    --background-color-dark: #212529; /* Dark Gray for Footer */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    --card-background: #FFFFFF;
    --card-shadow: 0 6px 18px rgba(27, 140, 133, 0.08); /* Subtle shadow with a hint of primary color */
    --card-hover-shadow: 0 10px 25px rgba(27, 140, 133, 0.12);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition-speed: 0.3s ease-in-out;

    --navbar-height: 5.5rem; 
    --section-padding: 4.5rem 1.5rem;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
    font-size: 16px; 
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--headings-color);
    font-weight: 700; /* Poppins Bold */
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }

.section-title { /* Applied to main titles of sections */
    margin-bottom: 3rem !important;
    font-weight: 700;
    color: var(--headings-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.subtitle {
    color: var(--text-color); 
    font-weight: 400; /* Work Sans Regular for subtitles */
    line-height: 1.6;
}

a {
    color: var(--link-color);
    transition: color var(--transition-speed);
    text-decoration: none;
    font-weight: 500; /* Slightly bolder links */
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Global Button Styles (Bulma's .button) */
.button {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.8em 1.8em;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    border-width: 2px; /* For a more substantial feel */
    border-style: solid;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.12);
}
.button.is-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Input field styling */
.input, .textarea {
    border-radius: var(--border-radius);
    border: 1px solid #cccccc; /* Slightly darker border */
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-family: var(--font-secondary);
    padding: 0.75em 1em;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.input::placeholder, .textarea::placeholder {
    color: #999999;
}

.input:focus, .textarea:focus,
.input:active, .textarea:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(27, 140, 133, 0.25), inset 0 1px 2px rgba(0,0,0,0.05); 
}

/* Header & Navbar */
.navbar.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.97); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    height: var(--navbar-height);
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand .navbar-item .site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.navbar-item {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-speed), background-color var(--transition-speed);
    padding: 0 1.2rem; /* Adjust horizontal padding */
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: var(--primary-color-darker) !important; 
    color: var(--text-color-light) !important;
}
.navbar.is-fixed-top .navbar-menu .navbar-item.is-active { /* Special style for active item */
     background-color: var(--primary-color) !important; 
     color: var(--text-color-light) !important;
}


.navbar-burger {
    color: var(--primary-color);
    height: var(--navbar-height); 
    width: var(--navbar-height);  
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 3px; 
    width: 22px;
    left: calc(50% - 11px); /* Center spans */
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.navbar-burger span:nth-child(1) { top: calc(50% - 8px); }
.navbar-burger span:nth-child(2) { top: calc(50% - 1.5px); }
.navbar-burger span:nth-child(3) { top: calc(50% + 5px); }

.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* Hero Section */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3)); /* Darker gradient for better text contrast */
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-title {
    font-size: 3.8rem; 
    font-weight: 700;
    color: var(--text-color-light) !important; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

#hero .hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-color-light) !important; 
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-weight: 400; /* Work Sans regular */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .button.is-primary.is-large {
    padding: 1em 2.5em;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* General Section Styling */
.section {
    padding: var(--section-padding);
}
.section.has-background-light {
    background-color: var(--background-color-light);
}

/* Vision Section */
#vision .content.is-medium {
    font-size: 1.1rem;
    line-height: 1.8;
}
#vision .vision-principles {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
#vision .vision-principles li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
#vision .vision-principles li:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--card-hover-shadow);
}
#vision .animated-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

#vision img {
    border-radius: var(--border-radius-large);
    box-shadow: 0 15px 35px rgba(27, 140, 133, 0.15); /* Primary color hint in shadow */
}

/* Card Styling (Courses, Instructors, Insights) */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%; 
    overflow: hidden; /* Ensure content respects border-radius */
}

.card:hover {
    transform: translateY(-6px) scale(1.01); /* More pronounced hover */
    box-shadow: var(--card-hover-shadow);
}

.card .card-image .image img { /* General for images inside <figure class="image"> */
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    /* border-radius handled by figure or card-image if image is not full card width */
}

.card .card-image figure { /* Target the figure directly if it's the immediate child */
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
    overflow: hidden; /* Clip image to figure's rounded corners */
}


.card .card-content {
    padding: 1.8rem; /* Increased padding */
    text-align: center; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}
.card .card-content .title { /* Titles within cards */
    color: var(--headings-color);
    margin-bottom: 0.75rem;
}
.card .card-content .subtitle { /* Subtitles within cards */
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.card .card-content .content {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; 
    color: var(--text-color);
}

.course-progress .progress {
    margin-bottom: 0.35rem;
    height: 0.8rem;
    border-radius: var(--border-radius);
}
.course-progress .progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: var(--border-radius);
}
.course-progress .progress.is-primary::-webkit-progress-value { background-color: var(--primary-color); border-radius: var(--border-radius); }
.course-progress .progress.is-primary::-moz-progress-bar { background-color: var(--primary-color); border-radius: var(--border-radius); }
.course-progress .progress.is-info::-webkit-progress-value { background-color: var(--secondary-color); border-radius: var(--border-radius); }
.course-progress .progress.is-info::-moz-progress-bar { background-color: var(--secondary-color); border-radius: var(--border-radius); }
.course-progress .progress.is-success::-webkit-progress-value { background-color: var(--accent-color); border-radius: var(--border-radius); }
.course-progress .progress.is-success::-moz-progress-bar { background-color: var(--accent-color); border-radius: var(--border-radius); }
.course-progress p {
    color: #777;
}

.card .button { /* Button at the bottom of a card */
    margin-top: auto; /* Pushes button to the bottom */
    width: 100%; /* Make button full width in card */
}

/* Instructors Section Specifics */
.instructor-card .card-image {
    padding: 1.5rem 1.5rem 0; /* Padding around the image figure */
    background-color: var(--background-color-light); /* Light bg for image area */
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
}
.instructor-card .card-image .image.is-1by1 {
    max-width: 180px; /* Control size of instructor photo */
    margin: 0 auto 1rem auto; /* Center and add bottom margin */
}
.instructor-card .card-image .image.is-1by1 img {
    border-radius: 50%; 
    border: 4px solid var(--text-color-light); /* White border around image */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.instructor-card .card-content {
    background-color: var(--card-background); /* Ensure content area is standard card bg */
}


/* Customer Stories Section (Testimonials) */
.testimonial-card {
    background-color: var(--background-color-light); /* Light bg for testimonial cards */
    border-left: 5px solid var(--primary-color); /* Accent border */
    border-radius: var(--border-radius); /* Slightly different radius */
}
.testimonial-card .card-content {
    text-align: left; 
    padding: 2rem;
}
.testimonial-card .media-left .image img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.testimonial-card .media-content .title {
    color: var(--headings-color);
}
.testimonial-card .media-content .subtitle {
    color: var(--primary-color); /* Use primary color for role */
    font-size: 0.9rem;
}
.testimonial-card .content {
    font-style: italic;
    font-size: 1.05rem;
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--text-color);
    position: relative;
}
.testimonial-card .content::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: -1rem;
}


/* External Resources Section */
.external-links-list ul {
    list-style: none;
    margin-left: 0;
}
.external-links-list li {
    background-color: var(--card-background);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-left-color var(--transition-speed);
    border-left: 4px solid transparent; /* Prepare for hover effect */
}
.external-links-list li:hover {
    transform: translateX(5px); /* Subtle shift */
    box-shadow: var(--card-hover-shadow);
    border-left-color: var(--accent-color);
}
.external-links-list li a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.6rem;
}
.external-links-list li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.external-links-list li p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Contact Section */
#contactForm {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
#contactForm label.label {
    font-weight: 600; /* Bolder labels */
    color: var(--headings-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#contactForm .checkbox {
    font-size: 0.9rem;
}
#contactForm .checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}
#contactForm .checkbox a:hover {
    color: var(--accent-color);
}


/* Footer */
.footer {
    background-color: var(--background-color-dark);
    color: #adb5bd; /* Lighter gray for footer text */
    padding: 4rem 1.5rem 2.5rem; 
    border-top: 5px solid var(--primary-color);
}
.footer .poppins-bold { 
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer .work-sans, .footer ul li a {
    font-family: var(--font-secondary);
    color: #ced4da; 
    font-size: 0.95rem;
}
.footer ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 0.6rem;
}
.footer ul li a {
    transition: color var(--transition-speed), padding-left var(--transition-speed);
}
.footer ul li a:hover {
    color: var(--secondary-color); 
    text-decoration: none;
    padding-left: 5px; /* Slight indent on hover */
}
.footer .social-links li a::before {
    /*  Optional: Add icons via CSS pseudo-elements if not using font library, but problem stated text-only */
    /*  content: '🔗 '; */
    /*  margin-right: 0.3em; */
}
.footer .content p { /* Copyright text */
    color: #868e96; 
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
}

/* success.html specific styles */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height)); /* Adjusted for body padding-top */
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color-light);
}
.success-page-container .icon { /* Placeholder for a success icon if added */
    font-size: 5rem; /* Example: Use a checkmark icon */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: popIn 0.5s ease-out forwards;
}
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-page-container .title {
    color: var(--headings-color);
    margin-bottom: 1rem;
}
.success-page-container .subtitle {
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* privacy.html & terms.html specific styles */
.static-page-content {
    /* padding-top already handled by body's padding-top + section's padding */
    padding-bottom: 3rem;
    min-height: calc(100vh - var(--navbar-height) - 10rem); /* Rough estimate for footer height */
}
.static-page-content .container {
    max-width: 800px; 
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.static-page-content h1.title {
    margin-bottom: 2rem;
    font-size: 2.8rem;
    color: var(--primary-color);
}
.static-page-content h2.title {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    color: var(--headings-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}
.static-page-content p, .static-page-content li {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}
.static-page-content ul, .static-page-content ol {
    list-style-position: outside;
    margin-left: 1.5rem; /* Adjusted for Bulma compatibility */
    margin-bottom: 1.2rem;
}
.static-page-content ul li { list-style-type: disc; }
.static-page-content ol li { list-style-type: decimal; }


/* Responsive Adjustments */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.99);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        position: absolute; /* Ensure it flows over content */
        left: 0;
        right: 0;
        top: var(--navbar-height);
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
    }
    .navbar.is-fixed-top .navbar-menu.is-active {
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
    }
     .navbar-item {
        padding: 0.8rem 1.5rem; /* More padding for touch */
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-item:last-child {
        border-bottom: none;
    }

    /* Ensure columns stack nicely on mobile, Vision section example */
    #vision .columns.is-vcentered.is-variable { 
        flex-direction: column; 
    }
    #vision .columns.is-vcentered .column:first-child { /* Text column */
        order: 2; /* Text below image */
    }
     #vision .columns.is-vcentered .column:last-child { /* Image column */
        order: 1;
        margin-bottom: 2.5rem;
    }
    #vision .columns.is-vcentered.is-variable > .column {
        width: 100% !important; 
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .section {
        padding: 3.5rem 1rem;
    }
    .section-title {
        font-size: 2rem; 
        margin-bottom: 2rem !important;
    }
    .subtitle {
        font-size: 1.05rem;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .title.is-3 { font-size: 1.7rem; }
    .title.is-4 { font-size: 1.3rem; }

    #hero .hero-title { font-size: 2.8rem; }
    #hero .hero-subtitle { font-size: 1.3rem; }

    .button.is-large { 
        font-size: 1rem;
        padding: 0.9em 2em;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
    .footer ul li a:hover {
        padding-left: 0; /* Remove indent on mobile for footer links */
    }
    #vision .vision-principles {
        flex-direction: column;
        gap: 1rem;
    }
    #vision .vision-principles li {
        width: 100%;
        justify-content: flex-start; /* Align left on mobile */
        padding: 0.8rem 1.2rem;
    }
    .testimonial-card .content::before { /* Adjust quote position on mobile */
        left: -0.5rem;
        top: -0.2rem;
    }
    .static-page-content .container {
        padding: 1.5rem;
    }
    .static-page-content h1.title { font-size: 2rem; }
}

/* AOS Animation defaults */
[data-aos] {
    opacity: 0; /* Initial state for AOS */
    transition-property: transform, opacity; /* Properties AOS will animate */
}

/* Figure and Image consistency (from Bulma, enhanced) */
figure.image {
    position: relative; /* For aspect ratio */
}

figure.image img { /* Base for images in figures */
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
}
/* Specific aspect ratios and object-fit */
figure.image.is-16by9 img,
figure.image.is-4by3 img,
figure.image.is-1by1 img,
figure.image.is-3by2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* Read More link styles (if used, example HTML would be <a class="read-more-link">...</a>) */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    position: relative; 
    padding-bottom: 3px; /* Space for underline */
}
.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color-darker);
    transition: width 0.3s ease-out;
}
.read-more-link:hover::after {
    width: 100%;
}
.read-more-link:hover {
    color: var(--accent-color-darker);
    text-decoration: none; /* Prevent double underline */
}