/* =============================================== */
/* == 1. GLOBAL & REUSABLE STYLES (DEFINED ONCE) = */
/* =============================================== */

/* --- Global Styles & Color Variables --- */
:root {
    --bg-color: #1a1c20;
    --header-bg: #111316;
    --accent-color: #00ff85;
    --text-color: #f0f0f0;
    --secondary-text: #a0a0a0;
    --card-bg: rgba(42, 45, 50, 0.7);
    --border-color: rgba(68, 68, 68, 0.5);
    --glow-color: rgba(0, 255, 133, 0.5);
    --level-beginner: #00ff85;
    --level-intermediate: #ffae00;
    --level-advanced: #ff4d4d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(to right, rgba(68,68,68,0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(68,68,68,0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
    animation: pan-grid 60s linear infinite;
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2;
}

section {
    padding: 120px 0; position: relative;
}

.section-title {
    font-size: 2.5rem; text-align: center; margin-bottom: 10px; font-weight: 700;
}

.section-subtitle {
    text-align: center; color: var(--secondary-text); font-size: 1.1rem; margin-top: 0; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Header & Navigation --- */
.main-header {
    padding: 20px 0;
    position: relative;
    background-color: var(--header-bg);
    width: 100%;
    z-index: 10;
}

.main-nav {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-weight: 700; font-size: 1.5rem; color: var(--accent-color); text-decoration: none; text-shadow: 0 0 10px var(--glow-color);
}

.nav-links {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 30px;
}

.nav-links a {
    color: var(--text-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color); text-shadow: 0 0 10px var(--glow-color);
}

.cta-button {
    background-color: var(--accent-color); color: var(--bg-color); padding: 10px 25px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: transform 0.2s ease, box-shadow 0.3s ease; box-shadow: 0 0 10px rgba(0,0,0,0);
}

.cta-button:hover {
    transform: scale(1.05); box-shadow: 0 0 20px var(--glow-color);
}

/* --- Generic Page Header (for About, Courses, Blog, Contact) --- */
.page-header {
    padding: 180px 0 120px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 133, 0.1), transparent 40%);
}
.page-header h1 { font-size: 3.5rem; line-height: 1.2; color: var(--text-color); margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; color: var(--secondary-text); max-width: 600px; margin: 0 auto; }


/* --- Footer --- */
.main-footer {
    background-color: #111316;
    padding: 80px 0 0 0;
    position: relative;
    color: var(--secondary-text);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col h4 {
    color: var(--text-color); margin-bottom: 20px; font-size: 1.1rem; position: relative; padding-bottom: 10px;
}

.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background-color: var(--accent-color);
}

.footer-col p, .footer-col ul, .footer-col li {
    margin: 0; padding: 0; list-style: none;
}

.footer-col a {
    color: var(--secondary-text); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color); padding-left: 5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-subscribe-form {
    display: flex; margin-top: 10px;
}

.footer-subscribe-form input {
    flex-grow: 1; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); padding: 12px; border-radius: 5px 0 0 5px; outline: none; transition: border-color 0.3s;
}

.footer-subscribe-form input:focus {
    border-color: var(--accent-color);
}

.footer-subscribe-form button {
    border: none; background: var(--accent-color); color: var(--bg-color); padding: 0 15px; font-weight: 600; cursor: pointer; border-radius: 0 5px 5px 0; transition: opacity 0.3s;
}

.footer-subscribe-form button:hover {
    opacity: 0.8;
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; padding: 25px 0; font-size: 0.9rem;
}

.social-links a {
    display: inline-block; color: var(--secondary-text); margin-left: 20px; transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color); transform: translateY(-3px);
}

/* --- Global Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Global Responsive Design --- */
@media (max-width: 992px) {
    /* The incorrect rule that hid the menu has been removed from here */
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}


/* =============================================== */
/* == 2. PAGE-SPECIFIC STYLES ==================== */
/* =============================================== */

/* --- HOMEPAGE Styles --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; padding-top: 80px; background: radial-gradient(circle at 80% 50%, rgba(0, 255, 133, 0.1), transparent 40%); padding-bottom: 0;
}
.hero-container {
    display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%;
}
.hero-content {
    flex: 1; max-width: 50%; padding-right: 20px;
}
.hero-content h1 {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px;
}
.hero-content .highlight {
    color: var(--accent-color); text-shadow: 0 0 15px var(--glow-color);
}
.typing-effect {
    display: inline-block; overflow: hidden; white-space: nowrap; border-right: 3px solid var(--accent-color); width: 0;
    animation: typing 2s steps(15, end) forwards, blink-caret .75s step-end infinite;
    animation-delay: 0.5s;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--accent-color); } }
.hero-content p {
    font-size: 1.1rem; color: var(--secondary-text); margin-bottom: 30px;
}
.hero-content .view-button {
    background-color: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.hero-content .view-button:hover {
    background-color: var(--accent-color); color: var(--bg-color); box-shadow: 0 0 20px var(--glow-color); transform: scale(1.05);
}
.hero-animation {
    flex: 1; max-width: 50%; height: 500px; display: flex; align-items: center; justify-content: center; position: relative;
}
.orb-container {
    width: 400px; height: 400px; position: relative; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; animation: rotate-orb-container 40s linear infinite;
}
@keyframes rotate-orb-container { to { transform: rotateY(360deg) rotateX(360deg); } }
.central-orb {
    width: 80px; height: 80px; background: radial-gradient(circle, var(--accent-color) 0%, rgba(0, 255, 133, 0.2) 60%, transparent 100%); border-radius: 50%; box-shadow: 0 0 40px var(--glow-color); animation: pulse-core 3s ease-in-out infinite;
}
@keyframes pulse-core { 0%, 100% { transform: scale(0.95); box-shadow: 0 0 40px var(--glow-color); } 50% { transform: scale(1.05); box-shadow: 0 0 60px var(--glow-color); } }
.orbit {
    position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(0, 255, 133, 0.2); transform-style: preserve-3d;
}
.orbit-node {
    position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 10px var(--glow-color);
}
.orbit-1 { width: 250px; height: 250px; margin-top: -125px; margin-left: -125px; transform: rotateX(70deg); animation: rotate-orbit-1 10s linear infinite; }
.orbit-1 .orbit-node { margin-top: -6px; margin-left: -6px; transform: translateX(125px); }
.orbit-2 { width: 350px; height: 350px; margin-top: -175px; margin-left: -175px; transform: rotateX(70deg) rotateY(60deg); animation: rotate-orbit-2 15s linear infinite reverse; }
.orbit-2 .orbit-node { margin-top: -6px; margin-left: -6px; transform: translateX(175px); }
@keyframes rotate-orbit-1 { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes rotate-orbit-2 { to { transform: rotateX(70deg) rotateY(60deg) rotateZ(360deg); } }
.angled-divider {
    position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.angled-divider svg {
    position: relative; display: block; width: calc(100% + 1.3px); height: 100px;
}
.angled-divider .shape-fill { fill: #16181b; }
#why-us { background-color: #16181b; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; perspective: 1000px; }
.feature-card {
    background: var(--card-bg); backdrop-filter: blur(10px); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); text-align: center; position: relative; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover { transform: translateY(-10px) scale(1.03) rotateX(5deg); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 8px; border: 2px solid transparent; background: linear-gradient(to bottom, var(--accent-color), transparent) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 60px; height: 60px; margin-bottom: 20px; color: var(--accent-color); transition: transform 0.4s ease; }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature-card p { color: var(--secondary-text); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card.animate-on-scroll, .course-card.animate-on-scroll { transform: translateY(50px) rotateX(-30deg) scale(0.95); opacity: 0; }
.feature-card.animate-on-scroll.is-visible, .course-card.animate-on-scroll.is-visible { transform: translateY(0) rotateX(0) scale(1); opacity: 1; }
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; padding-right: 0; }
    .hero-animation { max-width: 100%; margin-top: 60px; min-height: 400px; }
    .hero-content h1 { font-size: 2.8rem; }
}

/* --- COURSES PAGE Styles (and Homepage Popular Courses) --- */
.courses-section {
    padding: 80px 0 120px 0;
}

.courses-grid {
    display: grid;
    /* This NEW rule creates 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 133, 0.2);
}

.course-card-image {
    height: 200px;
    position: relative;
    background-color: #333;
    overflow: hidden; /* This is crucial for containing the image */
}

/* This is the most important fix for the image size */
.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This scales and crops the image perfectly */
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-level-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.course-level-tag.beginner { background-color: var(--level-beginner); color: var(--bg-color); }
.course-level-tag.intermediate { background-color: var(--level-intermediate); color: var(--bg-color); }
.course-level-tag.advanced { background-color: var(--level-advanced); color: #fff; }

.course-card h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* This new rule targets the link inside the course title */
.course-card h3 a {
    color: var(--text-color); /* Sets the default color to your theme's white */
    text-decoration: none;   /* Removes the underline */
    transition: color 0.3s ease; /* Adds a smooth color change effect */
}

/* This new rule creates the hover effect */
.course-card h3 a:hover {
    color: var(--accent-color); /* Changes the color to your theme's green */
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.instructor-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.course-meta {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-grow: 1;
}

.course-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.course-meta li:last-child { margin-bottom: 0; }
.course-meta svg { width: 18px; height: 18px; color: var(--accent-color); flex-shrink: 0; }
.course-meta strong { color: var(--text-color); }

.course-footer {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.course-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.course-price { font-size: 1.7rem; font-weight: 700; color: var(--accent-color); }
.original-price { font-size: 1rem; font-weight: 400; color: var(--secondary-text); text-decoration: line-through; }
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #1a1c20;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}
.button:hover {
    box-shadow: 0 0 15px var(--glow-color);
    transform: scale(1.03);
}

/* Responsive rules for the grid */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* --- COURSE DETAILS PAGE Styles --- */
.course-hero { background-color: var(--header-bg); padding: 60px 0; color: #fff; }
.course-hero h1 { font-size: 2.8rem; margin: 0 0 15px; line-height: 1.2; }
.course-hero p { font-size: 1.1rem; color: var(--secondary-text); max-width: 800px; margin: 0 0 20px; }
.course-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.course-content-area { padding: 60px 0; }
.course-layout { display: flex; gap: 40px; align-items: flex-start; }
.course-main-content { flex: 1; min-width: 0; }
.course-sidebar { width: 350px; flex-shrink: 0; position: sticky; top: 40px; }
.sidebar-card { border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--header-bg); }
.video-preview { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px 8px 0 0; }
.video-preview iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sidebar-card-body { padding: 25px; }
.price-info { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.current-price { font-size: 2.2rem; color: var(--text-color); font-weight: 700; }
.sidebar-button { display: block; width: 100%; padding: 15px; text-align: center; text-decoration: none; border-radius: 5px; font-weight: 700; font-size: 1rem; margin-bottom: 12px; transition: all 0.3s ease; }
.add-to-cart-btn { background-color: var(--accent-color); color: var(--bg-color); }
/* This adds the hover effect */
.sidebar-button.add-to-cart-btn:hover {
    transform: scale(1.05); /* Makes the button slightly larger */
    box-shadow: 0 0 20px var(--glow-color); /* Adds the green glow */
    filter: brightness(1.1); /* Makes the button slightly brighter */
}
.buy-now-btn { background-color: transparent; border: 2px solid var(--border-color); color: var(--text-color); }
.buy-now-btn:hover { background-color: var(--border-color); }
.course-includes-sidebar { list-style: none; padding: 0; margin-top: 20px; }
.course-includes-sidebar li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.9rem; }
.course-includes-sidebar svg { width: 18px; height: 18px; color: var(--accent-color); }
.content-section { padding: 30px; border: 1px solid var(--border-color); border-radius: 8px; background-color: rgba(26, 28, 32, 0.5); margin-bottom: 30px; transition: box-shadow 0.4s ease, border-color 0.4s ease; }
.content-section:hover { border-color: var(--glow-color); box-shadow: 0 0 25px rgba(0, 255, 133, 0.1); }
.content-section h2 { font-size: 1.8rem; margin-top: 0; margin-bottom: 25px; border-left: 3px solid var(--accent-color); padding-left: 15px; }
.icon-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 15px; }
.icon-list.two-columns { grid-template-columns: 1fr 1fr; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; }
.icon-list svg { width: 20px; height: 20px; color: var(--accent-color); flex-shrink: 0; margin-top: 3px; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1.1rem; }
.accordion-header::after { content: '+'; font-size: 1.8rem; color: var(--accent-color); transition: transform 0.3s ease; }
.accordion-item.active .accordion-header::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content ul { list-style: none; padding: 0 0 15px 15px; margin: 0; }
.accordion-content li { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--secondary-text); border-top: 1px solid var(--border-color); }
.accordion-content li svg { width: 16px; height: 16px; color: var(--secondary-text); }
.testimonial-card { background: rgba(22, 24, 27, 0.7); padding: 25px; border-radius: 8px; border-left: 3px solid var(--accent-color); }
.testimonial-text { font-style: italic; color: var(--secondary-text); margin: 0 0 15px; }
.testimonial-author { font-weight: 700; }
.related-courses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-course-card { background-color: var(--header-bg); border-radius: 8px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 15px; padding: 15px; text-decoration: none; transition: all 0.3s ease; }
.related-course-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.related-course-card img { width: 70px; height: 70px; border-radius: 5px; flex-shrink: 0; }
.related-course-info h4 { margin: 0 0 5px; color: var(--text-color); font-size: 1rem; }
.related-course-info span { color: var(--accent-color); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 992px) {
    .course-layout { flex-direction: column; }
    .course-sidebar { width: 100%; position: static; }
    .icon-list.two-columns { grid-template-columns: 1fr; }
    .related-courses-grid { grid-template-columns: 1fr; }
}

/* --- BLOG PAGE Styles --- */
.blog-section { padding: 80px 0 120px 0; }
.featured-post-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 80px; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; backdrop-filter: blur(10px); }
.featured-post-image { border-radius: 8px; overflow: hidden; height: 100%; }
.featured-post-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-content .category-tag { background-color: var(--accent-color); color: var(--bg-color); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 15px; }
.featured-post-content h2 { font-size: 2.2rem; margin: 0 0 15px; }
.featured-post-content h2 a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.featured-post-content h2 a:hover { color: var(--accent-color); }
.featured-post-content p { color: var(--secondary-text); margin-bottom: 25px; }
.author-info { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.author-info img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border-color); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; perspective: 1000px; }
.post-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s ease, box-shadow 0.4s ease; backdrop-filter: blur(10px); }
.post-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.post-card-image { height: 200px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.post-card .category-tag { background-color: var(--border-color); color: var(--text-color); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 15px; }
.post-card h3 { font-size: 1.4rem; margin: 0 0 15px; flex-grow: 1; }
.post-card h3 a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.post-card h3 a:hover { color: var(--accent-color); }
.post-card .author-info { border-top: 1px solid var(--border-color); padding-top: 15px; }
.post-card.animate-on-scroll { transform: translateY(50px) rotateX(-30deg) scale(0.95); }
.post-card.animate-on-scroll.is-visible { transform: translateY(0) rotateX(0) scale(1); }
@media (max-width: 992px) {
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-post-image { height: 300px; }
}

/* --- ABOUT PAGE Styles --- */
.mission-section { padding: 100px 0; }
.mission-content { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; }
.mission-text h2 { font-size: 2.5rem; margin-top: 0; margin-bottom: 20px; border-left: 3px solid var(--accent-color); padding-left: 15px; }
.mission-text .highlight { color: var(--accent-color); }
.mission-text p { color: var(--secondary-text); }
.mission-visual { position: relative; height: 300px; }
.mission-visual .shape { position: absolute; border-radius: 8px; transition: all 0.5s ease; }
.shape1 { width: 80%; height: 80%; background-color: var(--border-color); top: 0; left: 0; }
.shape2 { width: 70%; height: 70%; background-color: var(--card-bg); bottom: 0; right: 0; border: 1px solid var(--accent-color); display: flex; align-items: center; justify-content: center; }
.shape2 svg { width: 80px; height: 80px; color: var(--accent-color); opacity: 0.5; }
.values-section { padding: 100px 0; background-color: var(--header-bg); position: relative; }
.values-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.value-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.value-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.value-card svg { width: 50px; height: 50px; color: var(--accent-color); margin-bottom: 20px; }
.value-card h3 { font-size: 1.5rem; margin: 0 0 10px; }
.value-card p { color: var(--secondary-text); font-size: 0.95rem; }
.stats-section { padding: 100px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.stat-item { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px 20px; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--accent-color); line-height: 1; }
.stat-label { color: var(--secondary-text); margin-top: 10px; }
.cta-section { padding: 80px 0; text-align: center; }
.cta-content { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 60px 40px; backdrop-filter: blur(10px); }
.cta-content h2 { font-size: 2.5rem; margin: 0 0 20px; }
.cta-content p { color: var(--secondary-text); max-width: 600px; margin: 0 auto 30px; }
@media (max-width: 992px) {
    .mission-content { grid-template-columns: 1fr; }
    .mission-visual { display: none; }
}

/* --- CONTACT PAGE Styles --- */
.contact-section { padding: 80px 0 120px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 50px; backdrop-filter: blur(10px); }
.contact-info h2 { font-size: 2.2rem; margin-top: 0; margin-bottom: 15px; }
.contact-info p { color: var(--secondary-text); margin-bottom: 30px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-item svg { width: 24px; height: 24px; color: var(--accent-color); }
.info-item a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.info-item a:hover { color: var(--accent-color); }
.social-platforms { margin-top: 40px; }
.social-platforms h3 { font-size: 1.2rem; margin-bottom: 20px; }
.social-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.social-link-card { display: flex; align-items: center; gap: 12px; background-color: var(--header-bg); padding: 15px; border-radius: 5px; text-decoration: none; color: var(--text-color); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.social-link-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.social-link-card svg { width: 28px; height: 28px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary-text); }
.contact-form .form-control { width: 100%; padding: 14px; background-color: var(--header-bg); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-color); font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form .form-control:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 10px rgba(0, 255, 133, 0.2); }
.contact-form textarea.form-control { height: 140px; resize: vertical; }
.contact-form .submit-btn { width: 100%; padding: 15px; font-size: 1rem; font-weight: 700; border: none; }
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content { background-color: var(--header-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; text-align: center; max-width: 400px; width: 90%; transform: scale(0.9); transition: transform 0.4s ease; }
.popup-overlay.active .popup-content { transform: scale(1); }
.popup-content .success-icon { width: 60px; height: 60px; color: var(--accent-color); margin-bottom: 20px; }
.popup-content h2 { margin: 0 0 10px; font-size: 1.8rem; }
.popup-content p { color: var(--secondary-text); margin: 0 0 25px; }
.popup-close-btn { background-color: var(--accent-color); color: var(--bg-color); padding: 10px 30px; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; }
@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; }
}
/* --- Styling for lists inside dynamic content sections --- */
.content-section .icon-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.content-section .icon-list.two-columns {
    grid-template-columns: 1fr 1fr;
}

.content-section .icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-section .icon-list li::before {
    content: ' ';
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2300ff85"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>');
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}
/* =============================================== */
/* == WOOCOMMERCE STYLING (Cart & Checkout) ====== */
/* =============================================== */

/* This targets the body tag ONLY on WooCommerce pages */
body.woocommerce-cart,
body.woocommerce-checkout {
    color: var(--secondary-text);
}
body.woocommerce-cart a,
body.woocommerce-checkout a {
    color: var(--accent-color);
    text-decoration: none;
}

/* More specific table styles */
.woocommerce table.shop_table {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    width: 100%;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--border-color) !important;
    color: var(--text-color);
    padding: 15px 12px;
}
.woocommerce table.shop_table .product-name a {
    color: var(--text-color);
    font-weight: bold;
}

/* More specific Cart Totals box */
.woocommerce .cart-collaterals .cart_totals {
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
}
.woocommerce .cart-collaterals .cart_totals h2 {
    color: var(--text-color);
}

/* More specific form field styles */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px;
    border-radius: 5px;
    width: 100%;
}
.woocommerce form .form-row label {
    color: var(--text-color);
}

/* More specific button styles with !important to override defaults */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--accent-color) !important;
    color: var(--bg-color) !important;
    padding: 12px 25px !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    line-height: 1.5;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow-color);
    filter: brightness(1.1);
}

/* =============================================== */
/* == MOBILE NAVIGATION STYLES =================== */
/* =============================================== */

/* Hamburger Button Styles */
.hamburger {
    display: none; /* Hidden on desktop */
    padding: 15px;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin: 0;
    z-index: 1001; /* Make sure it's on top */
}
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.2s ease-in-out;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger animation when active (X) */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--accent-color);
}
.hamburger.is-active .hamburger-inner::before {
    transform: rotate(90deg) translate(-10px, 0px);
    background-color: var(--accent-color);
}
.hamburger.is-active .hamburger-inner::after {
    transform: rotate(90deg) translate(10px, 0px);
    background-color: var(--accent-color);
}


/* Mobile Menu Styles (when screen is 992px or less) */
@media (max-width: 992px) {
    .hamburger {
        display: inline-block; /* Show the hamburger */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        transform: translateX(100%); /* Hidden off-screen to the right */
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.is-active {
        transform: translateX(0); /* Slides into view */
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}
/* =============================================== */
/* == FOOTER SOCIAL ICON STYLES ================== */
/* =============================================== */

.social-links a {
    /* This makes the icon itself the color, not a text color */
    color: var(--secondary-text);
    display: inline-block;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px); /* Keeps the hover effect */
}

/* Set the specific brand colors on hover */
.social-links a.facebook-icon:hover {
    color: #1877F2; /* Facebook Blue */
}
.social-links a.telegram-icon:hover {
    color: #24A1DE; /* Telegram Blue */
}
.social-links a.whatsapp-icon:hover {
    color: #25D366; /* WhatsApp Green */
}
.social-links a.youtube-icon:hover img {
    opacity: 0.8;
}
/* =============================================== */
/* == AMBASSADOR SECTION STYLES ================== */
/* =============================================== */

.ambassador-section {
    padding: 80px 0;
}

.ambassador-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* This creates the 3-column layout */
    gap: 30px;
}

.ambassador-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ambassador-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.ambassador-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
    position: relative;
}

.ambassador-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ambassador-card h3 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: var(--text-color);
}

.ambassador-card .department {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.ambassador-card .university {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Responsive rules for the grid */
@media (max-width: 992px) {
    .ambassador-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .ambassador-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}