/*
  This is your complete 'style.css' file, renamed to 'main.css'.
  It includes all your original styles PLUS the fixes for WordPress.
*/

/* ================================== */
/* ==== GLOBAL & ROOT VARIABLES ==== */
/* ================================== */
:root {
    --primary-color: #0a4d90; /* Strong blue */
    --secondary-color: #007bff; /* Bright blue */
    --accent-color: #00bfff;  /* Bright cyan */
    --dark-grey: #2a2a2a; /* Darker grey for text */
    --light-grey: #f7f9fa; /* Lighter grey for backgrounds */
    --border-color: #e8e8e8;
    --text-color: #555;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --header-height-desktop: 80px;
    --header-height-mobile: 70px;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.07);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background: #ffffff;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Fix for body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

/* ================================== */
/* ==== BUTTONS & LINKS ==== */
/* ================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 77, 144, 0.3);
}

.btn-view {
    font-size: 0.9rem;
    padding: 8px 20px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.btn-view:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* ================================== */
/* ==== HEADER & NAVIGATION ==== */
/* ================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 0; 
    height: var(--header-height-desktop);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
    display: flex;
    align-items: center;
}

/* Solid state for scroll or inner pages */
header.solid {
    background: #ffffff;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

/* WordPress Admin Bar Fix */
body.admin-bar header {
    top: 32px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}
header h1 a {
    text-decoration: none;
    display: block; 
}

/* LOGO STYLING */
header h1 .logo {
    max-height: 50px; 
    width: auto;
    transition: max-height 0.4s ease;
    display: block;
}
header.solid h1 .logo {
    max-height: 40px; 
}

/* Desktop Navigation Styling */
header .desktop-nav ul {   /* <--- Removed "> div >" */
    list-style: none;
    display: flex;         /* This is what makes them sit side-by-side */
    gap: 1.5rem;           /* Increased gap slightly for better look */
    margin: 0;
    padding: 0;
    align-items: center;   /* Ensures they align nicely if heights vary */
}
header .desktop-nav a {
    text-decoration: none;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem; 
    border-radius: 50px; 
    transition: color 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
    display: flex; 
    align-items: center; 
}

header.solid .desktop-nav a {
    color: var(--dark-grey);
    text-shadow: none;
}

header .desktop-nav a:hover,
header .desktop-nav .current-menu-item > a,
header .desktop-nav .current-menu-ancestor > a {
    background-color: rgba(255, 255, 255, 0.2); 
    color: #ffffff;
    text-shadow: none;
}
header.solid .desktop-nav a:hover,
header.solid .desktop-nav .current-menu-item > a,
header.solid .desktop-nav .current-menu-ancestor > a {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ================================== */
/* ==== DESKTOP DROPDOWN MENUS (WP-COMPATIBLE) ==== */
/* ================================== */
.desktop-nav .menu-item-has-children {
    position: relative;
}

/* CHANGE IT TO THIS: */
.desktop-nav .menu-item-has-children > a::after {
    content: none; /* FIXED */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 7px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.desktop-nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.desktop-nav .menu-item-has-children .sub-menu {
    display: block; 
    position: absolute;
    top: calc(100% + 10px); 
    left: 0;
    width: 240px; 
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    list-style: none;
    z-index: 1100; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); 
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.desktop-nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .menu-item-has-children .sub-menu li {
    width: 100%;
}

.desktop-nav .menu-item-has-children .sub-menu li a {
    color: var(--dark-grey); 
    text-shadow: none;
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    background-color: transparent; 
}

.desktop-nav .menu-item-has-children .sub-menu li a::after {
    display: none;
}

.desktop-nav .menu-item-has-children .sub-menu li a:hover {
    background-color: var(--light-grey); 
    color: var(--primary-color);
}


/* ================================== */
/* ==== MOBILE NAVIGATION ==== */
/* ================================== */
.mobile-menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.4s ease;
}
header.solid .mobile-menu-toggle {
    color: var(--primary-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.95); 
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav > div > ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}
.mobile-menu nav li {
    margin: 1.5rem 0;
}
.mobile-menu nav a {
    text-decoration: none;
    color: #ffffff;
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex; 
    justify-content: center;
    align-items: center;
}
.mobile-menu nav a:hover {
    color: var(--accent-color);
}

/* ================================== */
/* ==== MOBILE SUBMENUS ==== */
/* ================================== */
.mobile-menu .menu-item-has-children > a i {
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.mobile-menu .menu-item-has-children.active > a i {
    transform: rotate(180deg);
}

.mobile-menu ul.sub-menu {
    list-style: none;
    padding-left: 0; 
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out;
}

.mobile-menu ul.sub-menu.active {
    max-height: 500px; 
    margin-top: 1rem;
    transition: max-height 0.6s ease-in, margin-top 0.4s ease-in;
}

.mobile-menu ul.sub-menu li {
    margin: 0;
}

.mobile-menu ul.sub-menu li a {
    font-size: 1.2rem; 
    font-weight: 400;
    color: #e0e0e0;
    padding: 0.75rem 1rem;
}
.mobile-menu ul.sub-menu li a:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.05);
}


/* ================================== */
/* ==== HERO SLIDER (HOMEPAGE) ==== */
/* ================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: center;
}

body.admin-bar .hero {
     margin-top: 32px; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
    display: flex; 
    align-items: center;
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 0 5%;
    margin-left: 5%; 
    animation: fadeInDown 1.5s 0.3s ease-out backwards;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    text-align: left;
}
.slide-content h2::after {
    display: none;
}

.slide-content p {
    font-size: 1.3rem;
    color: #f0f0f0;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.slide-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
}
.slide-arrow:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.7rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active,
.slider-dot:hover {
    background: #ffffff;
    transform: scale(1.2);
}

/* Bubbles Animation */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}
.bubble:nth-child(1) { left: 10%; animation-duration: 10s; }
.bubble:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 30%; animation-duration: 15s; }
.bubble:nth-child(4) { left: 40%; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(5) { left: 50%; animation-duration: 10s; }
.bubble:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 1s; }
.bubble:nth-child(7) { left: 70%; animation-duration: 16s; }
.bubble:nth-child(8) { left: 80%; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(9) { left: 90%; animation-duration: 14s; }
.bubble:nth-child(10) { left: 55%; animation-duration: 17s; animation-delay: 2s; }

@keyframes rise {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-1080px); opacity: 0; }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================================== */
/* ==== COURSE GRID (HOMEPAGE) ==== */
/* ================================== */
.course-grid {
    background: var(--light-grey);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card:hover .course-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; 
}
.card-content h3 {
    font-size: 1.4rem;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.course-card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
    margin-top: auto; 
}
.card-footer .btn-view {
    border: none;
    padding: 0;
    color: var(--secondary-color);
    font-weight: 600;
}
.card-footer .btn-view::after {
}
.course-card:hover .card-footer .btn-view::after {
    transform: translateX(5px);
}
.course-card:hover .card-footer .btn-view {
    color: var(--primary-color);
    background: transparent;
}

/* ================================== */
/* ==== TESTIMONIALS (HOMEPAGE) ==== */
/* ================================== */
.testimonials {
    background: #ffffff;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
/* CHANGE IT TO THIS: */
.testimonial-card::before {
    content: none; /* FIXED */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--light-grey);
    z-index: 1;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}
.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-grey);
    font-style: normal;
    font-size: 1.1rem;
}
.testimonial-course {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

/* ================================== */
/* ==== ABOUT PREVIEW (HOMEPAGE) ==== */
/* ================================== */
.about-preview {
    background: var(--light-grey);
}
.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.about-text h2 {
    text-align: left;
}
.about-text h2::after {
    left: 0;
    transform: translateX(0);
}
.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ================================== */
/* ==== TEAM (HOMEPAGE) (FIXED) ==== */
/* ================================== */
.team {
    background: #ffffff;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}
.team-member img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 77, 144, 0.2);
}
.team-member h3 {
    margin-bottom: 0.25rem;
    color: var(--dark-grey);
}
.team-member p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ================================== */
/* ==== CONTACT (HOMEPAGE) ==== */
/* ================================== */
.contact {
    background: var(--light-grey);
}
.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-top: -3rem;
    margin-bottom: 3rem;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contact-info h3, .contact-form h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
.contact-info p i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
    margin-top: 4px; 
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(10, 77, 144, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.contact-form button {
    align-self: flex-start;
}

/* ================================== */
/* ==== FOOTER (Original Version) ==== */
/* ================================== */
footer {
    background: var(--dark-grey);
    color: #ccc;
    padding: 4rem 0 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}
.footer-col p {
    color: #ccc;
    line-height: 1.8;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col ul a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul a:hover {
    color: #ffffff;
    padding-left: 5px;
}
/* CHANGE IT TO THIS: */
.footer-col ul a:hover::before {
    content: none; /* FIXED */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-links a {
    color: #ccc;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    color: #aaa;
}

/* ================================== */
/* ==== BACK-TO-TOP BUTTON ==== */
/* ================================== */
.back-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 998; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.back-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ================================== */
/* ==== INNER PAGE STYLES ==== */
/* ================================== */

.page-hero {
    height: 100vh; 
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-size: cover;
    background-position: center center;
    background-blend-mode: multiply;
    background-color: rgba(10, 30, 60, 0.7); 
}
.page-hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    font-weight: 700;
    margin: 0;
    text-align: center;
    animation: fadeInDown 1.5s 0.3s ease-out backwards; 
}
.page-hero h1::after {
    display: none; 
}

body.admin-bar .page-hero {
     margin-top: 32px; 
}

.course-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-content-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-medium);
}
.page-content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.page-content-wrapper h2 {
    text-align: left;
    font-size: 2rem;
}
.page-content-wrapper h2::after {
    left: 0;
    transform: translateX(0);
}
.page-content-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
}
.page-content-wrapper ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.course-level-box {
    margin-bottom: 3.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: #ffffff;
}
.course-level-box h2 {
    font-size: 2rem;
    font-weight: 600;
    background: var(--primary-color);
    color: #ffffff;
    padding: 1.5rem 2rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.course-level-box h2::after {
    display: none; 
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center; 
}

.course-text-content {
}

.course-image-gallery {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-image-gallery img {
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================================== */
/* ==== COLLAPSIBLE ACCORDION ==== */
/* ================================== */
.collapsible-trigger {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-grey);
    cursor: pointer;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
    position: relative;
    padding-right: 30px; 
}
.collapsible-trigger:hover {
    color: var(--primary-color);
}
.collapsible-trigger::after {
    content: none; 
}
.collapsible-trigger.active::after {
    content: none; 
    color: var(--dark-grey);
    transform: translateY(-50%) rotate(180deg);
}

.collapsible-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.collapsible-content.active {
    max-height: 2000px; 
    padding: 1.5rem 1rem;
    transition: max-height 0.6s ease-in, padding 0.4s ease-in;
}

.collapsible-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.collapsible-content li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.collapsible-content li i {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 4px;
    width: 20px;
    text-align: center;
}
.collapsible-content li span {
    flex: 1;
}

/* ================================== */
/* ==== BLOG / NEWS / WEBINAR LIST ==== */
/* ================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.article-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}
.article-item:hover {
    box-shadow: var(--shadow-medium);
}
.article-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-item-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-item-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.article-item-content .date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}
.article-item-content .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* ================================== */
/* ==== GALLERY & VIDEO GRIDS ==== */
/* ================================== */
.gallery-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item,
.video-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #fff;
}
.gallery-item:hover,
.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.video-item-thumbnail {
    position: relative;
    cursor: pointer;
}
.video-item-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.video-item-thumbnail::after {
    content: 'f144'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}
.video-item:hover .video-item-thumbnail::after {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--accent-color);
}
.video-item-content {
    padding: 1.5rem;
}
.video-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ================================== */
/* ==== CAREER PAGE STYLES ==== */
/* ================================== */
.job-listing {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.job-listing:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}
.job-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1rem;
}
.job-listing-header h3 {
    color: var(--primary-color);
    margin: 0;
}
.job-listing-details {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.job-listing-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.job-listing p {
    margin-top: 1.5rem;
}
.job-listing .btn {
    margin-top: 1rem;
}

/* ================================== */
/* ==== FAQ PAGE STYLES ==== */
/* ================================== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.faq-list .collapsible-trigger {
    font-size: 1.2rem; 
}

/* ================================== */
/* ==== RESPONSIVE DESIGN ==== */
/* ================================== */

/* Tablets and small desktops */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    section { padding: 4rem 0; }

    header .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .slide-content {
        margin-left: 0;
        padding: 0 5%;
        text-align: center;
    }
    .slide-content h2 {
        font-size: 2.8rem;
        text-align: center;
    }
    .slide-content p { 
        font-size: 1.1rem; 
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-grid,
    .team-grid,
    .about-preview-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .about-text h2 { text-align: center; }
    .about-text h2::after { left: 50%; transform: translateX(-50%); }
    .about-text { text-align: center; }

    .page-hero h1 {
        font-size: 2.8rem;
    }
    .course-layout {
        grid-template-columns: 1fr; 
    }
    .course-image-gallery {
        order: -1; 
        max-height: 400px;
    }
    .course-image-gallery img {
        max-height: 350px;
        width: auto;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    header {
        height: var(--header-height-mobile); 
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    header.solid {
        height: var(--header-height-mobile);
    }
    header h1 .logo {
        max-height: 35px;
    }
    header .mobile-menu-toggle {
        color: var(--primary-color);
    }
    header:not(.solid) h1 .logo {
        max-height: 35px; 
    }
    header:not(.solid) .mobile-menu-toggle {
        color: var(--primary-color);
    }

    h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    section { padding: 3rem 0; }

    .hero {
        height: 80vh;
        min-height: 500px;
        padding-top: var(--header-height-mobile);
    }
    .slide-content h2 { font-size: 2.2rem; }

    .grid-container {
        grid-template-columns: 1fr;
    }
    .contact-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }

    .page-hero {
        height: 60vh; 
        min-height: 300px;
        padding-top: var(--header-height-mobile); 
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .course-layout {
        padding: 1.5rem;
    }
    .course-level-box h2 {
        font-size: 1.5rem;
        padding: 1.2rem 1.5rem;
    }
    .collapsible-trigger {
        font-size: 1.15rem;
    }
}

/* WordPress Admin Bar Fix for Mobile */
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
    body.admin-bar .hero {
         margin-top: 46px; 
    }
    body.admin-bar .page-hero {
         margin-top: 46px; 
    }
}