/* === COMMON STYLES FOR ALL PAGES === */

/* --- Global Styles & Variables --- */
:root {
    --primary-green: #e7f5e8;
    --dark-text: #2c3e50;
    --accent-teal: #008080;
    --accent-coral: #e74c3c;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-grey: #f9f9f9;
    --font-family: 'Kanit', sans-serif;
    --border-radius: 12px;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-family); background-color: var(--white); color: var(--dark-text); line-height: 1.7; font-weight: 400; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--dark-text); }
h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
a { color: var(--accent-teal); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-coral); }
p { font-size: 1.1rem; }

/* --- Announcement Bar --- */
.announcement-bar {
    background-color: var(--accent-coral);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}
.announcement-bar p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}
.announcement-bar .container {
     padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header { background-color: var(--white); padding: 0.75rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-light); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 1rem; }
.logo-item img { max-height: 50px; display: block; }
.logo-divider { width: 2px; height: 35px; background-color: #e0e0e0; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--dark-text); font-size: 1.1rem; font-weight: 600; padding-bottom: 5px; border-bottom: 3px solid transparent; position: relative; }
.main-nav a:not(.btn-nav-login)::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -3px; left: 50%; background-color: var(--accent-teal); transition: all 0.3s ease-in-out; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; left: 0; }
.main-nav a.active { color: var(--accent-teal); }
.btn-nav-login { background-color: var(--accent-teal); color: var(--white); padding: 8px 20px; border-radius: 20px; transition: all 0.3s ease; }
.btn-nav-login:hover { background-color: var(--accent-coral); transform: scale(1.05); }
#mobile-nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--dark-text); }

/* --- Footer --- */
.main-footer { background: var(--dark-text); color: #ccc; padding: 50px 0 20px; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-organizer { flex: 2; min-width: 280px; }
.footer-contact { flex: 1; min-width: 250px; }
.footer-organizer h4, .footer-contact h4 { font-size: 1.2rem; color: var(--white); margin-bottom: 1rem; font-weight: 600; }
.footer-organizer img { max-height: 60px; margin-bottom: 1rem; background: var(--white); padding: 5px; border-radius: 8px; }
.footer-organizer p, .footer-contact p { margin: 0 0 0.5rem; font-size: 1rem; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--accent-coral); }
.footer-contact i { margin-right: 10px; color: var(--accent-teal); }
.copyright { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid #444; font-size: 0.9rem; color: #888; }

/* --- General Components & Animations --- */
.btn { padding: 14px 32px; text-decoration: none; border-radius: 30px; font-weight: 700; transition: all 0.3s ease; display: inline-block; border: 2px solid transparent; font-size: 1.1rem; box-shadow: var(--shadow-light); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.btn-primary { background-color: var(--accent-teal); color: var(--white); border-color: var(--accent-teal); }
.btn-primary:hover { background-color: #006d6d; }
.btn-secondary { background-color: transparent; color: var(--accent-teal); border-color: var(--accent-teal); }
.btn-secondary:hover { background-color: var(--accent-teal); color: var(--white); }
.btn-line { background-color: #00B900; color: var(--white); border-color: #00B900; }
.btn-line:hover { background-color: #00A300; }
.btn-line i { margin-right: 10px; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; color: white; }
.btn-danger:hover { background-color: #c82333; border-color: #c82333; }
.film-strip-divider { height: 40px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="40" viewBox="0 0 100 40"><rect width="100%" height="100%" fill="%23e7f5e8"/><rect x="5" y="5" width="90" height="5" fill="%23cccccc"/><rect x="5" y="30" width="90" height="5" fill="%23cccccc"/><rect x="10" y="14" width="8" height="12" fill="%23cccccc"/><rect x="28" y="14" width="8" height="12" fill="%23cccccc"/><rect x="46" y="14" width="8" height="12" fill="%23cccccc"/><rect x="64" y="14" width="8" height="12" fill="%23cccccc"/><rect x="82" y="14" width="8" height="12" fill="%23cccccc"/></svg>'); background-repeat: repeat-x; background-size: 100px 40px; }
.content-section { padding: 80px 0; }
.page-title-section { background-color: var(--primary-green); padding: 60px 0; text-align: center; }
.page-title-section h1 { font-size: 2.8rem; }
.page-title-section .page-subtitle { font-size: 1.3rem; color: #555; margin-top: 0.5rem; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

/* --- Responsive for Common Elements --- */
@media (max-width: 992px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); box-shadow: var(--shadow-medium); flex-direction: column; padding: 1rem 0; }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid #f0f0f0; }
    .main-nav a:not(.btn-nav-login)::after { display: none; }
    .btn-nav-login { margin: 1rem 1.5rem; text-align: center; }
    #mobile-nav-toggle { display: block; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .content-section { padding: 60px 0; }
    .logo-item img { max-height: 40px; }
    .logo-divider { height: 30px; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-organizer, .footer-contact { text-align: center; }
}