/* Global Variables */
:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #d4a373;
    /* Soft Gold/Beige for premium feel */
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    /* Fallback/Default */
    --bg-palette-1: #8c5d6d;
    --bg-palette-2: #bf9196;
    --bg-palette-3: #b8868b;
    --bg-palette-4: #21585a;
    --bg-palette-5: #cebca9;
    --bg-palette-6: #ab6f78;
    --text-color: #333333;
    --text-light: #777777;
    --border-color: #ededed;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-desktop ul {
    display: flex;
    gap: 32px;
}

.nav-desktop a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* .nav-desktop a:hover {
    color: var(--accent-color);
} */

.nav-desktop ul li:nth-child(1) a:hover {
    color: var(--bg-palette-1);
}

.nav-desktop ul li:nth-child(2) a:hover {
    color: var(--bg-palette-2);
}

.nav-desktop ul li:nth-child(3) a:hover {
    color: var(--bg-palette-3);
}

.nav-desktop ul li:nth-child(4) a:hover {
    color: var(--bg-palette-4);
}

.nav-desktop ul li:nth-child(5) a:hover {
    color: var(--bg-palette-5);
}

.nav-desktop ul li:nth-child(6) a:hover {
    color: var(--bg-palette-6);
}

.nav-desktop ul li:nth-child(7) a:hover {
    color: var(--bg-palette-1);
}

.nav-desktop a.nav-special {
    position: relative;
    font-weight: 700;
    /* Make it stand out slightly */
}

.nav-desktop a.nav-special:hover {
    color: #fff;
    background-color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
}

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

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Override section margin if needed */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px 60px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.about-desc {
    margin-bottom: 32px;
    color: var(--text-light);
}

.about {
    background-color: var(--bg-palette-2);
    /* Muted Pink - Medium */
    color: #fff;
    /* White text for darker bg */
}

.about .section-title {
    color: #fff;
}

.about .about-desc {
    color: rgba(255, 255, 255, 0.9);
}

.about .about-features {
    color: #fff;
}


.about-features {
    list-style: disc;
    padding-left: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.about-features li {
    margin-bottom: 10px;
}

/* Services Section */
/* .services {
    background-color: var(--bg-light);
} */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    display: block;
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio {
    background-color: var(--bg-palette-1);
    /* Mauve - Dark */
    color: #fff;
}

.portfolio .section-title {
    color: #fff;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img,
.placeholder-img {
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px 0;
    text-align: center;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Products Section */
.products {
    background-color: var(--bg-light);
    /* Same as Reviews */
    color: var(--text-color);
}

.products .section-title {
    color: var(--primary-color);
}

.products .product-desc,
.products .product-list,
.products .product-list li::before {
    color: var(--text-light);
}

.products-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row;
    /* Text on right, Image on left */
}

.product-image {
    flex: 1;
}

.product-text {
    flex: 1;
    padding-left: 40px;
}

.product-desc {
    margin-bottom: 32px;
    color: var(--text-light);
}

.product-list {
    margin-bottom: 32px;
    list-style: none;
}

.product-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.product-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Product Slider Styles */
.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    color: var(--primary-color);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 5px;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}


/* Reviews Section */
.reviews {
    /* background-color: var(--bg-light); Removed for swap */
    text-align: center;
}

.review-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.review-author {
    font-weight: 600;
    color: var(--text-light);
}

/* Instagram Section */
.instagram {
    background-color: #fff;
}

.instagram-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 48px;
    margin-top: -20px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.instagram-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-card:hover {
    transform: translateY(-5px);
}

.instagram-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.instagram-image img,
.instagram-image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-card:hover .instagram-overlay {
    opacity: 1;
}

.instagram-stats {
    display: flex;
    gap: 24px;
    color: #fff;
    font-size: 1rem;
}

.instagram-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-stats svg {
    width: 20px;
    height: 20px;
}


/* Certification Section */
.certification {
    background-color: var(--bg-palette-4);
    color: #fff;
}

.certification .section-title {
    color: #fff;
}

.certification-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cert-content {
    flex: 1;
}

.cert-image {
    flex: 1;
}

/* Certification Slider Styles */
.cert-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.cert-slider .slider-track {
    position: relative;
    width: 100%;
    height: 300px;
}

.cert-slider .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cert-slider .slider-item.active {
    opacity: 1;
}

.cert-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    padding: 10px;
    color: #333;
}

.cert-slider .slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.cert-slider .slider-btn-prev {
    left: 15px;
}

.cert-slider .slider-btn-next {
    right: 15px;
}

/* Contact Section */
.contact {
    background-color: var(--bg-palette-3);
    /* Rose - Medium/Dark */
    color: #fff;
}

.contact .section-title {
    color: #fff;
}

.contact-info p {
    color: #fff;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.contact-branches {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.contact-branches span {
    padding: 6px 12px;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* 텍스트 기반 중앙 정렬 추가 */
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 30px; /* 간격을 15px에서 30px로 확대 */
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
}

.footer-social a {
    color: #9ca3af;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: #bf9196; /* ABOUT APL COLOR 파트의 배경색 */
    transform: translateY(-5px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-container,
    .products-container,
    .certification-container,
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .products-container {
        flex-direction: column;
        /* Reset reverse */
    }

    .product-image,
    .product-text {
        width: 100%;
        flex: none;
    }

    .product-slider .slider-item img {
        height: 300px !important;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Text Emphasis Utilities */
.about-block h4 {
    font-size: calc(1.1rem + 5px) !important;
    /* Increased by 5px */
    position: relative;
    padding-left: 14px;
    color: var(--primary-color) !important;
    /* Matched to Hero Title color */
}

.about-block h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--bg-palette-4);
    /* Certification Background Color */
    border-radius: 2px;
}

.emp-strong {
    font-weight: 700;
    /* font-size: calc(1em + 5px); Reset to normal */
    color: var(--bg-palette-4);
    /* Certification Background Color */
    text-decoration: none;
    /* Removing underline for cleaner look with color */
    /* Optional: Add a text shadow for better contrast */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    /* Adjusted shadow for dark text on pink bg */
}

/* ================================================== */
/* INSTRUCTORS PAGE STYLES */
/* ================================================== */

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
    /* Unifying with Instructors Section */
    text-align: center;
}

/* Instructor Card Color Variations (Subtle Accents) */
/* Unified Hover Effect */
.instructor-card {
    border-top: 4px solid transparent;
    /* Reserve space or transition */
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--bg-palette-1);
    /* Unified Color: Mauve */
}

/* Base Position Pill Style (Unified Color) */
.inst-position {
    font-size: 0.8rem;
    color: #fff;
    /* White Text */
    font-weight: 400;
    margin-left: 6px;
    background: var(--bg-palette-1);
    /* Unified Color: Mauve */
    padding: 2px 8px;
    border-radius: 4px;
}


.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Representative Profile */
.representative-section {
    background-color: #fff;
}

.rep-profile-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 40px;
}

.rep-image {
    flex: 0 0 400px;
}

.placeholder-rep-img {
    width: 100%;
    height: 500px;
    background-color: #eee;
    border-radius: 4px;
    /* Placeholder Styling */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

.placeholder-rep-img::after {
    content: "Representative Photo (400x500)";
}

.rep-info {
    flex: 1;
}

.rep-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.rep-eng {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 10px;
}

/* Representative Profile Layout */
.profile-section {
    margin-bottom: 30px;
}

.profile-section h5 {
    font-size: 1.1rem;
    color: var(--bg-palette-1);
    /* Title Color */
    margin-bottom: 12px;
    font-weight: 700;
}

.profile-list {
    list-style: none;
    padding-left: 0;
}

.profile-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.profile-list li::before {
    content: '•';
    color: var(--bg-palette-4);
    /* Bullet Color */
    margin-right: 10px;
    font-weight: bold;
}

.compact-list li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.rep-title {
    font-size: 1.1rem;
    color: var(--bg-palette-1);
    /* Accent Color */
    font-weight: 500;
    margin-bottom: 24px;
}

.rep-desc {
    margin-bottom: 32px;
    color: var(--text-color);
    line-height: 1.8;
}

.rep-desc p {
    margin-bottom: 16px;
}

.rep-credentials {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.rep-credentials li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.rep-credentials li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--bg-palette-4);
    /* Teal Accent */
    border-radius: 50%;
    margin-right: 12px;
}

/* Instructors Grid */
.instructors-section {
    background-color: var(--bg-light);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: left;
    /* Align text left for lists */
}

.instructor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.inst-image {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
}

.placeholder-inst-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.placeholder-inst-img::after {
    content: "Instructor";
}


.inst-info {
    padding: 24px;
    text-align: left;
}

.inst-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    text-align: center;
    /* Keep name centered */
}

.inst-profile-content h6 {
    font-size: 0.9rem;
    color: #555;
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 700;
}

.inst-profile-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.inst-profile-content ul li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    padding-left: 8px;
    position: relative;
    line-height: 1.5;
}

.inst-profile-content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #ccc;
}

/* Emphasis for Highlights */
.emphasis-list li,
.inst-profile-content.emphasis-content ul li {
    font-weight: 600;
    /* Bolder */
    color: #333;
    /* Darker text */
}


/* inst-position moved to card variations block for unification */

.inst-spec {
    color: var(--bg-palette-2);
    /* Muted Pink */
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.inst-career {
    text-align: left;
    font-size: 0.85rem;
    color: #555;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.inst-career li {
    margin-bottom: 6px;
    padding-left: 10px;
    position: relative;
}

.inst-career li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ccc;
}

/* Responsive Styles for Instructors */
@media (max-width: 992px) {
    .rep-profile-container {
        flex-direction: column;
        align-items: center;
    }

    .rep-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .instructors-grid {
        grid-template-columns: 1fr;
    }
}

.emp-medium {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* ================================================== */
/* INFINITE SCROLL ANIMATION */
/* ================================================== */

/* Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scroll Container (Mask) */
.infinite-scroll-mask {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
    /* Add visual breathing room */
}

/* Scroll Track (Flex Container) */
.infinite-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
    /* Ensure track width accommodates all items */
    animation: scroll 40s linear infinite;
    /* Adjust speed as needed */
}

/* Pause on Hover */
.infinite-scroll-track:hover {
    animation-play-state: paused;
}

/* Item Styling Adjustments for Scroll */
/* Ensure items have fixed width so they don't shrink */
.infinite-scroll-track .portfolio-item,
.infinite-scroll-track .review-card {
    flex: 0 0 auto;
    /* Don't shrink or grow */
    width: 300px;
    /* Fixed width for consistency */
}

/* Reviews Specific overrides for scroll */
.infinite-scroll-track .review-card {
    width: 350px;
    /* Slightly wider for text */
    margin: 0;
    /* Remove auto margin */
}

/* Portfolio Specific overrides for scroll */
.infinite-scroll-track .portfolio-item {
    width: 400px;
}

/* ================================================== */
/* INSTAGRAM HORIZONTAL SCROLL SECTION (JoCoding Style) */
/* ================================================== */

.instagram-scroll {
    background-color: #f8f9fa;
    /* Light grey background to separate sections */
    padding: 60px 0;
}

.instagram-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 4px 30px 4px;
    /* Bottom padding for scrollbar space/shadow and hover lift */
    /* Hide Scrollbar for cleaner look (optional, but good for JoCoding vibe) */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.instagram-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Optional: If we want a visible scrollbar, remove the above 'none' hacks and style it: */
/*
.instagram-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.instagram-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
*/

.instagram-scroll-card {
    flex: 0 0 auto;
    /* Don't shrink */
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Reset link style */
    color: inherit;
}

.instagram-scroll-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 180px;
    /* Fixed height for image area */
    background-color: #eee;
    overflow: hidden;
}

.card-image .placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.instagram-scroll-card:hover .card-image .placeholder-img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex: 1;
    /* Push content to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.card-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* ================================================== */
/* JOCODING REPLICA SECTION (Popular Lectures Style) */
/* ================================================== */

.jocoding-feed {
    background-color: var(--bg-light);
    /* padding: 60px 0; - Removed to match global section padding */
}


.jocoding-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Always 3 columns on desktop/tablet */
    gap: 20px;
    padding: 10px 4px 30px 4px;
    width: 100%;
    /* Remove scroll properties */
}

.jocoding-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Honey Tip Arrow Animation */
.honey-tip-arrow {
    position: absolute;
    top: -200px;
    left: -30px;
    z-index: 10;
    animation: bounce-tip 1.5s ease-in-out infinite;
    pointer-events: none;
}

.honey-arrow-img {
    width: 280px;
    height: auto;
}

@keyframes bounce-tip {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Make scroll-wrapper relative for arrow positioning */
.jocoding-scroll-wrapper {
    position: relative;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .honey-tip-arrow {
        display: none;
    }
}

/* Custom Instagram Embed Card Style */
.insta-embed-card {
    width: 100%;
    /* Fill the grid cell */
    max-width: 400px;
    /* Limit max width for wide screens */
    margin: 0 auto 20px auto;
    /* Center in cell if needed */
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Responsive Behavior for JoCoding/Instagram Feed */
/* Tablet/Narrower Desktop: Squeeze the 3 cards (Overlap effect) */
@media (max-width: 1024px) {
    .jocoding-scroll-wrapper {
        gap: 10px;
        /* Tighter gap to help them fit/overlap */
    }
}

/* Mobile: Show one by one VERTICALLY */
@media (max-width: 768px) {
    .jocoding-scroll-wrapper {
        grid-template-columns: 1fr;
        /* Switch to 1 column */
        gap: 30px;
        padding: 0 20px;
    }

    .insta-embed-card {
        max-width: none;
        /* Full width on mobile */
        margin-bottom: 0;
    }

    .insta-embed-footer .insta-view-more {
        display: none;
        /* Disable old view more link style */
    }
}


/* New Instagram Layout Elements */

/* 1. CTA Bar below Image */
.insta-image-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f8fb;
    padding: 10px 15px;
    border-bottom: 1px solid #efefef;
    text-decoration: none;
}

.insta-image-cta:hover {
    background-color: #f0f2f5;
}

.insta-cta-text {
    color: #3897f0;
    /* Instagram Blue */
    font-weight: 600;
    font-size: 0.9rem;
}

.insta-cta-icon svg {
    display: block;
}


/* 2. Comment UI Updates */
.insta-comments-link {
    display: block;
    color: #8e8e8e;
    font-size: 0.9rem;
    margin-top: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    cursor: pointer;
}

.insta-date {
    display: block;
    color: #8e8e8e;
    font-size: 0.7rem;
    margin-top: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}


/* 3. Add Comment Section */
.insta-add-comment {
    border-top: 1px solid #efefef;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    min-height: 50px;
}

.insta-add-comment input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.9rem;
    outline: none;
    padding-right: 10px;
}

.insta-add-comment input::placeholder {
    color: #8e8e8e;
}

.insta-post-btn {
    border: none;
    background: transparent;
    color: #b3dffc;
    /* Disabled blue look */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: auto;
    white-space: nowrap;
}

/* Enable look if typed (simulated) */
.insta-add-comment input:not(:placeholder-shown)+.insta-post-btn {
    color: #0095f6;
    cursor: pointer;
}

.insta-embed-header {
    display: flex;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #efefef;
    background: #fff;
}

.insta-profile-pic {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.insta-profile-pic .placeholder-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.insta-profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insta-username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #262626;
    line-height: 1.2;
}

.insta-location {
    font-size: 0.75rem;
    color: #262626;
    margin-top: 1px;
}

.insta-follow-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0095f6;
    /* Instagram Blue */
    text-decoration: none;
    margin-left: auto;
}

.insta-follow-btn:hover {
    color: #00376b;
}

/* Embed Image */
.insta-embed-image {
    width: 100%;
    height: 320px;
    /* 1:1 Aspect Ratio typically */
    background: #fafafa;
}

.insta-embed-image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Embed Footer */
.insta-embed-footer {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.insta-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    /* Icon size */
    color: #262626;
}

.insta-actions i {
    cursor: pointer;
    transition: color 0.2s;
}

.insta-actions i:hover {
    color: #8e8e8e;
}

.insta-likes {
    font-weight: 600;
    font-size: 0.9rem;
    color: #262626;
    margin-bottom: 8px;
}

.insta-caption {
    font-size: 0.9rem;
    color: #262626;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insta-username-caption {
    font-weight: 600;
    margin-right: 6px;
}

.insta-view-more {
    font-size: 0.85rem;
    color: #00376b;
    /* Darker blue for secondary links sometimes, or grey #8e8e8e */
    text-decoration: none;
    margin-top: 4px;
    font-weight: 500;
}

.insta-view-more:hover {
    text-decoration: underline;
}