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

:root {
    --primary-color: #1e40af;
    --secondary-color: #005a14;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for fixed navbar when jumping to anchors */
}

body {
    font-family: 'Noto Sans JP', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation Bar */
.navbar {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled navbar state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.navbar-scrolled #nav > .nav-item > a {
    color: var(--text-dark);
    text-shadow: none;
}

.navbar-scrolled #nav > .nav-item > a:hover {
    color: var(--accent-color);
    background-color: rgba(245, 158, 11, 0.08);
}

.navbar-scrolled .hamburger span {
    background-color: var(--text-dark);
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

/* Logo link hover effect */
.logo-link {
    display: inline-block;
}

.logo,
.logo-link img {
    transition: transform 0.18s ease, filter 0.18s ease;
}

.logo-link:hover .logo,
.logo-link:focus .logo {
    filter: brightness(1.8);
}

/* Navigation Dropdown Menu */
#nav {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

#nav .nav-item {
    position: relative;
    list-style: none;
}

#nav > .nav-item > a {
    display: block;
    padding: 12px 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 100;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#nav > .nav-item > a:hover {
    color: var(--accent-color);
    background-color: rgba(245, 158, 11, 0.1);
    border-bottom-color: var(--accent-color);
}

/* Submenu Styles */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    /* slightly translucent white so hero shows through */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.06);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

#nav .nav-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideDownMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-menu li {
    list-style: none;
    animation: fadeInMenuItem 0.3s ease forwards;
}

.sub-menu li:nth-child(1) { animation-delay: 0.05s; }
.sub-menu li:nth-child(2) { animation-delay: 0.1s; }
.sub-menu li:nth-child(3) { animation-delay: 0.15s; }
.sub-menu li:nth-child(4) { animation-delay: 0.2s; }
.sub-menu li:nth-child(5) { animation-delay: 0.25s; }
.sub-menu li:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes fadeInMenuItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sub-menu a:hover {
    background-color: rgba(30, 64, 175, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

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

    /* Hamburger bars: white on the dark navbar/video for contrast; switch to dark when menu is open */
    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #ffffff; /* contrasts with dark hero/video */
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    /* When the hamburger is toggled (menu open), use dark bars to contrast the white mobile menu */
    .hamburger.active span {
        background-color: var(--text-dark);
        box-shadow: none;
    }

    /* Focus state for keyboard accessibility */
    .hamburger:focus {
        outline: 2px solid rgba(245, 158, 11, 0.9);
        outline-offset: 3px;
    }

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

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUpRotate {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(-6deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-6deg);
    }
}

.hero-subtitle {
    font-size: 3rem;
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUpRotate 1s ease 0.2s both;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
    font-family: 'Ms Madi', cursive;
    font-weight: 400;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Noto Sans JP', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.22s ease;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.9s ease 0.35s both;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.cta-button:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .cta-button.download-btn {
        font-size: 0.7rem;
        padding: 10px 20px;
        width: 100%;
        max-width: 320px;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: max-content;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: rgba(245, 158, 11, 0.85);
    border-radius: 2px;
}

.section-logo {
    width: 72px;
    height: auto;
    display: block;
    filter: drop-shadow(var(--shadow));
}

.section-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.title-main {
    display: block;
}

.title-sub {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.1;
    margin-top: -8px;
}

@media (max-width: 600px) {
    .section-title {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 1.6rem;
        margin-bottom: 40px;
        padding-bottom: 12px;
    }

    .section-title::after {
        width: 60px;
        bottom: -6px;
    }

    .section-logo {
        width: 56px;
    }
    .section-text {
        align-items: center;
    }

    .title-sub {
        font-size: 0.9rem;
    }
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.news-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Programs Section */
.programs {
    background-color: var(--bg-white);
}

.program-overview-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto 50px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.program-card {
    background: rgba(245, 158, 11, 0.85);
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: scale(1.05);
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.program-card p {
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.95;
}

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

.program-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.program-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary-color);
}

/* Green Zone Card */
.program-card.green-zone {
    background-color: #10b981;
}

.program-card.green-zone h3 {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.program-card.green-zone .program-list li::before {
    color: #e0f2fe;
}

/* Blue Zone Card */
.program-card.blue-zone {
    background-color: #3b82f6;
}

.program-card.blue-zone h3 {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.program-card.blue-zone .program-list li::before {
    color: #e0f2fe;
}

/* Program Card Header Styles */
.program-header {
    margin-bottom: 15px;
}

.program-header h3 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.1;
}

.program-subtitle {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}

.program-period {
    margin: 0;
    font-size: 1.3rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.2;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
    text-align: center;
}

.program-main-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.program-goal {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    opacity: 0.95;
}

.program-description {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Social Banners Grid */
.social-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.social-banner-link {
    display: block;
    text-decoration: none;
}

.social-banner-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-banner-link:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002; /* sit above the sliding mobile menu */
        background: none;
        padding: 5px;
        border-radius: 6px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* When open, give the hamburger a white circular background so dark bars remain visible on the dark navbar */
    .hamburger.active {
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
    }

    .hamburger.active span {
        background-color: var(--text-dark);
        box-shadow: none;
    }

    #nav {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        text-align: left;
        transition: left 0.3s ease;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    #nav.active {
        left: 0;
    }

    #nav > .nav-item > a {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border-color);
        border-bottom-color: var(--primary-color);
        position: relative;
        font-size: 0.98rem;
        color: var(--text-dark); /* ensure contrast on white mobile menu */
        background-color: transparent;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    /* Mobile hover / active state for clarity */
    #nav > .nav-item > a:hover,
    #nav > .nav-item > a:focus {
        background-color: rgba(30, 64, 175, 0.04);
        color: var(--primary-color);
    }

    #nav > .nav-item > a::after {
        content: '▼';
        position: absolute;
        right: 15px;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    #nav > .nav-item > a.expanded::after {
        transform: rotate(-180deg);
    }

    .sub-menu {
        position: static;
        display: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        /* translucent white on mobile for consistency */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(6px);
        border-top: 1px solid rgba(0,0,0,0.04);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sub-menu.active-mobile {
        display: block;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        animation: expandMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes expandMenu {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }

    .sub-menu a {
        padding-left: 40px;
        border-left: none;
        animation: slideInFromLeft 0.3s ease forwards;
    }

    .sub-menu.active-mobile a:nth-child(1) { animation-delay: 0.05s; }
    .sub-menu.active-mobile a:nth-child(2) { animation-delay: 0.1s; }
    .sub-menu.active-mobile a:nth-child(3) { animation-delay: 0.15s; }
    .sub-menu.active-mobile a:nth-child(4) { animation-delay: 0.2s; }
    .sub-menu.active-mobile a:nth-child(5) { animation-delay: 0.25s; }
    .sub-menu.active-mobile a:nth-child(n+6) { animation-delay: 0.3s; }

    @keyframes slideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .sub-menu a:hover {
        padding-left: 45px;
        background-color: rgba(30, 64, 175, 0.1);
        transform: translateX(5px);
    }

    .sub-menu li:first-child {
        border-top: 1px solid var(--border-color);
    }

    .hero {
        height: 380px;
    }

    .hero-video {
        object-position: center;
    }

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

    .hero-subtitle {
        font-size: 1.29rem;
        max-width: 90%;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .news-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 320px;
    }

    .hero-video {
        object-position: center;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.15;
        padding: 0 12px;
    }

    .hero-subtitle {
        font-size: 1.23rem;
        max-width: 92%;
        padding: 0 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    section {
        padding: 40px 0;
    }
}

/* Latest News Section */
.latest-news {
    max-width: 800px;
    margin: 30px auto 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.news-item {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 10px 18px 40px;
    transition: background-color 0.25s ease;
}

.news-item::before {
    content: '•';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.8rem;
    line-height: 1;
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.25s ease;
}

.news-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .news-item a {
        font-size: 0.735rem;
    }
}

/* School News Section with Thumbnails */
.school-news {
    background-color: var(--bg-white);
    padding-top: 20px;
}

.school-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.school-news-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.school-news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.school-news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.school-news-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #eee;
}

.school-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.school-news-item:hover .school-news-image img {
    transform: scale(1.05);
}

.school-news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.school-news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.school-news-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.4;
}

.school-news-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Utility: Line break only on mobile */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }
}

/* Message Page Styles */
.message-page {
    padding-top: 160px; /* Increased to ensure header clears fixed navbar */
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

.message-item {
    background: var(--bg-white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.message-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
}

.message-content p {
    margin-bottom: 24px;
    line-height: 2;
    font-size: 1.05rem;
    text-align: justify;
}

.message-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 60px;
    gap: 20px;
}

.message-photo img {
    max-width: 200px;
    height: auto;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.message-signature {
    text-align: right;
    padding-right: 10px;
}

.message-signature .name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.message-signature .title {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .message-item {
        padding: 30px;
    }
    .message-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .message-signature {
        text-align: center;
    }
}

/* Curriculum Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.curriculum-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.curriculum-table th, 
.curriculum-table td {
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.curriculum-table thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.curriculum-table .header-accent {
    background-color: var(--secondary-color);
}

.curriculum-table .total-header {
    background-color: var(--accent-color) !important;
}

.curriculum-table .row-label {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
    width: 80px;
}

.curriculum-table .total-cell {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
    font-weight: 700;
    font-size: 1rem;
}

/* Lightbox Image Utility */
.lightbox-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.lightbox-img:hover {
    transform: scale(1.02);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #fff;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Form Styles */
.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    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 0 3px rgba(245, 158, 11, 0.1);
}
.contact-form textarea.form-control {
    resize: vertical;
}

/* Utility Classes */
.desktop-only {
    display: block;
}
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
}

/* FAQ Accordion Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none; /* Remove Safari marker */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] .faq-question {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    padding: 20px;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    background-color: var(--bg-white);
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}
