/* ===================================
   CSS Variables - School Color Scheme
   =================================== */
:root {
    --primary-blue: #2E8BC0;
    --dark-gray: #4A4A4A;
    --accent-gray: #6B6B6B;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Battambang', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.school-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.btn-apply {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-apply:hover {
    background-color: #257099;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #257099;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-md);
}

.btn-secondary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

/* ===================================
   Section CTA (Call to Action)
   =================================== */
.section-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), #257099);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--accent-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--accent-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-md);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Block */
.contact-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--accent-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.signature {
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-md);
}

/* ===================================
   Programs Section
   =================================== */
.programs-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.program-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-md);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--accent-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 139, 192, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
    background: rgba(46, 139, 192, 0.8);
    border-radius: 8px;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: rgba(46, 139, 192, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(46, 139, 192, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* ===================================
   Blog Section
   =================================== */
.blog-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.blog-list {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 6px 20px var(--shadow-md);
    transform: translateX(10px);
}

.post-date {
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.post-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.post-date .month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.post-meta {
    color: var(--accent-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta i {
    color: var(--primary-blue);
    margin-right: 0.3rem;
    margin-left: 1rem;
}

.post-meta i:first-child {
    margin-left: 0;
}

.post-content p {
    color: var(--accent-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #257099;
    gap: 0.8rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px var(--shadow-md);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-md);
    height: 100%;
    min-height: 500px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section:first-child {
    text-align: center;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 60px;
    margin: 0 auto 1rem auto;
}

.footer-section p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-section:first-child .social-links {
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #257099;
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--light-gray);
}

.contact-list li i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-blue);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

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

    .contact-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 1.5rem 0;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.75rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-divider {
        width: 60px;
        margin: 1rem auto;
    }

    /* Hero Section */
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
        line-height: 1.7;
    }

    .hero-image {
        order: 1;
    }

    .hero-image img {
        border-radius: 12px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        display: inline-block;
        width: auto;
    }

    /* Feature Cards */
    .feature-cards {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Sections */
    .about-section,
    .programs-section,
    .gallery-section,
    .blog-section,
    .contact-section {
        padding: 3rem 0;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .photo-grid {
        gap: 1.5rem;
    }

    .about-photo {
        border-radius: 10px;
    }

    /* Programs */
    .feature-cards,
    .programs-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        gap: 2rem;
    }

    .program-card {
        padding: 2.25rem 1.75rem;
        border-radius: 10px;
    }

    .program-icon {
        width: 70px;
        height: 70px;
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }

    .program-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .program-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    /* Gallery */
    .gallery-grid {
        gap: 1.25rem;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .gallery-item img {
        height: 250px;
    }

    /* Blog */
    .blog-list {
        gap: 1.5rem;
    }

    .blog-post {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .post-date {
        width: fit-content;
        margin: 0 auto;
    }

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

    .post-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .post-content p {
        font-size: 0.95rem;
    }

    .post-meta {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .read-more {
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .info-box {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .info-text h4 {
        font-size: 1.1rem;
    }

    .info-text p {
        font-size: 0.95rem;
    }

    .contact-map {
        min-height: 300px;
        border-radius: 10px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.85rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.85rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .footer-logo {
        width: 55px;
        margin: 0 auto 0.75rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.85rem;
        margin-top: 1.25rem;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .footer-section ul li {
        margin-bottom: 0.65rem;
    }

    .contact-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .contact-list li {
        gap: 0.65rem;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.88rem;
    }

    /* Section CTA */
    .section-cta {
        margin-top: 2.5rem;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .navbar {
        padding: 0.6rem 0;
    }

    .logo {
        gap: 8px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .school-name {
        font-size: 0.95rem;
    }

    .nav-menu {
        top: 65px;
        padding: 1.25rem 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section-divider {
        width: 50px;
        margin: 0.85rem auto;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content {
        gap: 1.75rem;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
        line-height: 1.65;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.85rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Feature Cards */
    .feature-cards {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.75rem 1.25rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    /* Sections */
    .about-section,
    .programs-section,
    .gallery-section,
    .blog-section,
    .contact-section {
        padding: 2.5rem 0;
    }

    /* About */
    .about-content {
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.35rem;
        margin-top: 1.25rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .photo-grid {
        gap: 1.25rem;
    }

    /* Programs */
    .programs-grid {
        gap: 1.5rem;
    }

    .program-card {
        padding: 1.85rem 1.5rem;
    }

    .program-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .program-card h3 {
        font-size: 1.25rem;
    }

    .program-card p {
        font-size: 0.93rem;
        line-height: 1.6;
    }

    /* Gallery */
    .gallery-grid {
        gap: 1rem;
    }

    .gallery-item img {
        height: 220px;
        border-radius: 8px;
    }

    /* Blog */
    .blog-post {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        gap: 1rem;
    }

    .post-date {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .post-content p {
        font-size: 0.92rem;
    }

    .post-meta {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-container {
        gap: 2rem;
    }

    .info-box {
        padding: 1.25rem;
        gap: 1rem;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.35rem;
    }

    .info-text h4 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .info-text p {
        font-size: 0.9rem;
    }

    .contact-map {
        min-height: 280px;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1.25rem;
        margin-bottom: 1.75rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        padding-bottom: 1rem;
    }

    .footer-logo {
        width: 50px;
        margin: 0 auto 0.65rem;
    }

    .footer-section h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .footer-section ul li {
        margin-bottom: 0.6rem;
    }

    .social-links {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .contact-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-list li {
        gap: 0.6rem;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Section CTA */
    .section-cta {
        margin-top: 2rem;
    }
}

/* ===================================
   Quick Links Section
   =================================== */
.quick-links-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-link-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-md);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.quick-link-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.quick-link-card p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   Why Choose Section
   =================================== */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.why-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-md);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #257099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--white);
}

.why-item h4 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.why-item p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   Contact Form Section
   =================================== */
.contact-form-section {
    margin-top: 4rem;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-form-section h3 {
    color: var(--dark-gray);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(46, 139, 192, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===================================
   Apply Section
   =================================== */
.apply-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.apply-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.apply-info {
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    height: fit-content;
}

.apply-info h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.requirements-list {
    list-style: none;
    margin-bottom: 2rem;
}

.requirements-list li {
    padding: 0.8rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.requirements-list li i {
    color: var(--primary-blue);
    margin-right: 0.8rem;
}

.apply-contact {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.apply-contact h4 {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.apply-contact p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.apply-contact i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.apply-form-container {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
}

.apply-form h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.apply-form h3:first-child {
    margin-top: 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ===================================
   Logo Link Styling
   =================================== */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Responsive Updates
   =================================== */
@media (max-width: 968px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .apply-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .quick-links-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 2rem 1.5rem;
    }

    .apply-form-container {
        padding: 2rem 1.5rem;
    }

    /* Lightbox responsive */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .lightbox-content img {
        max-height: 70vh;
    }
}

/* ===================================
   Blog Post Detail Page
   =================================== */
.blog-post-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.blog-post-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-post-detail {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.post-meta-detail {
    display: flex;
    gap: 2rem;
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
}

.post-meta-detail i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.post-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.post-body li {
    margin-bottom: 0.8rem;
}

.post-body strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--shadow);
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #257099;
    transform: translateX(-5px);
}

.btn-back i {
    margin-right: 0.5rem;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.sidebar-widget h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--shadow);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: var(--primary-blue);
}

.post-date-small {
    color: var(--accent-gray);
    font-size: 0.85rem;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.8rem;
}

.categories-list a {
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.categories-list a:before {
    content: "▸";
    color: var(--primary-blue);
    margin-right: 0.8rem;
    font-weight: bold;
}

.categories-list a:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

@media (max-width: 968px) {
    .blog-post-container {
        grid-template-columns: 1fr;
    }

    .blog-post-detail {
        padding: 2rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-meta-detail {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   Privacy Policy & Terms of Service Pages
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5f7f 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.content-wrapper h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--accent-gray);
}

.content-wrapper ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
    color: var(--accent-gray);
}

.content-wrapper ul li strong {
    color: var(--dark-gray);
}

.contact-info-list {
    list-style: none;
    margin-left: 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.contact-info-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--dark-gray);
}

.contact-info-list li:last-child {
    margin-bottom: 0;
}

.contact-info-list i {
    color: var(--primary-blue);
    margin-right: 1rem;
    width: 20px;
    font-size: 1.1rem;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.back-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link .btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .content-wrapper h2 {
        font-size: 1.5rem;
    }

    .content-wrapper h3 {
        font-size: 1.2rem;
    }

    .content-wrapper ul {
        margin-left: 1.5rem;
    }
}

/* ===================================
   Blog Post Detail Page Styles
   =================================== */
.blog-post-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f9fc 0%, var(--light-gray) 100%);
    min-height: 80vh;
}

.blog-post-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post-detail {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--accent-gray);
    font-size: 0.95rem;
}

.post-meta-detail span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-detail i {
    color: var(--primary-blue);
    font-size: 1rem;
}

/* Rich Text Content Styles - TinyMCE Output */
.post-body {
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 1.05rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.post-body h1 {
    font-size: 2rem;
}

.post-body h2 {
    font-size: 1.75rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body h4 {
    font-size: 1.25rem;
}

.post-body h5 {
    font-size: 1.1rem;
}

.post-body h6 {
    font-size: 1rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 15px var(--shadow);
}

.post-body a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: #257099;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.post-body li {
    margin-bottom: 0.8rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-gray);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--accent-gray);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.post-body table th,
.post-body table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.post-body table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.post-body table tr:last-child td {
    border-bottom: none;
}

.post-body table tr:hover {
    background-color: var(--light-gray);
}

.post-body code {
    background-color: var(--light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.post-body pre {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: var(--white);
}

.post-body strong,
.post-body b {
    font-weight: 600;
    color: var(--dark-gray);
}

.post-body em,
.post-body i {
    font-style: italic;
}

.post-body hr {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 2.5rem 0;
}

/* Post Footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #257099;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px var(--shadow-md);
}

.btn-back i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    color: var(--dark-gray);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: var(--primary-blue);
}

.post-date-small {
    display: block;
    color: var(--accent-gray);
    font-size: 0.85rem;
}

/* Responsive Blog Post Detail */
@media (max-width: 992px) {
    .blog-post-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-post-detail {
        padding: 2rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-post-section {
        padding: 2rem 0;
    }

    .blog-post-detail {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body img {
        margin: 1.5rem auto;
    }

    .post-meta-detail {
        gap: 1rem;
    }
}