/*
Theme Name: WP Sekolah
Theme URI: https://example.com/wp-sekolah
Author: WP Sekolah Team
Author URI: https://example.com
Description: A professional, modern school WordPress theme with transparent header, animated hero, news cards, headmaster preface, and school features sections. Designed for Islamic schools with Tahfidz program support.
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-sekolah
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready, blog, education
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --wp-sekolah-primary: #0d6b4e;
    --wp-sekolah-accent: #d4a843;
    --wp-sekolah-dark: #1a1a2e;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-green { color: #0d6b4e; }
.text-gold { color: #d4a843; }
.bg-green { background-color: #0d6b4e; }
.bg-dark { background-color: #1a1a2e; }
.bg-light { background-color: #f8fdf9; }

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6b4e, #d4a843);
    border-radius: 2px;
}

.section-title p {
    color: #666666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a843, #c49a38);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.5);
    background: linear-gradient(135deg, #c49a38, #b8892e);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #0d6b4e;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #0d6b4e;
    border: 2px solid #0d6b4e;
}

.btn-outline:hover {
    background: #0d6b4e;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   Header - Transparent Sticky
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.transparent {
    background: transparent;
}

.site-header.scrolled {
    background: rgba(13, 107, 78, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.site-logo img,
.site-logo .custom-logo {
    max-height: 50px;
    width: auto;
    transition: max-height 0.3s ease;
}

.site-header.scrolled .site-logo img,
.site-header.scrolled .site-logo .custom-logo {
    max-height: 40px;
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    width: 30px;
}

.nav-menu li a:hover {
    color: #d4a843;
}

.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    z-index: 1002;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #333;
    border-radius: 0;
}

.nav-menu li .sub-menu li a:hover {
    background: #f8fdf9;
    color: #0d6b4e;
}

.nav-menu li .sub-menu li a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 107, 78, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
    z-index: 1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.1);
    animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content .section-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.2);
    color: #d4a843;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 168, 67, 0.3);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
    color: #d4a843;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-decoration: none;
    gap: 8px;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.7);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4a843;
    line-height: 1;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ==========================================================================
   Page Header - Inner Pages
   ========================================================================== */
.page-header {
    position: relative;
    padding: 160px 0 60px;
    background: linear-gradient(135deg, #0d6b4e 0%, #1a1a2e 100%);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a:hover {
    color: #d4a843;
}

.page-header .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb .current {
    color: #ffffff;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-section {
    background: #f8fdf9;
    padding: 80px 0;
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    width: 100%;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0d6b4e;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 25px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #888;
}

.news-card-meta svg {
    width: 14px;
    height: 14px;
    stroke: #888;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #0d6b4e;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6b4e;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.news-card-link:hover {
    color: #d4a843;
}

.news-card-link:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Headmaster Preface
   ========================================================================== */
.headmaster-section {
    background: #ffffff;
    padding: 80px 0;
}

.headmaster-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.headmaster-photo {
    position: relative;
}

.headmaster-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.headmaster-photo:hover img {
    transform: scale(1.02);
}

.headmaster-photo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: #d4a843;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.headmaster-photo::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: #0d6b4e;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.headmaster-content {
    position: relative;
}

.headmaster-quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6b4e, #d4a843);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.headmaster-quote-icon svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.headmaster-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #d4a843;
}

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

.headmaster-info-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d4a843;
}

.headmaster-info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headmaster-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.headmaster-title {
    font-size: 0.85rem;
    color: #0d6b4e;
    font-weight: 500;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    width: 100%;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6b4e, #d4a843);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(13, 107, 78, 0.1), rgba(212, 168, 67, 0.1));
    border-radius: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-icon svg {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    stroke: #0d6b4e;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #0d6b4e, #d4a843);
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon svg {
    stroke: #ffffff;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #0d6b4e 0%, #0a5a42 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #1a1a2e;
    color: #ffffff;
    position: relative;
}

.back-to-top {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6b4e, #d4a843);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.footer-widgets {
    padding: 60px 0 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-height: 50px;
    width: auto;
}

.footer-site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: #d4a843;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #d4a843;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #d4a843;
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-menu li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d4a843;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-menu li a:hover {
    color: #d4a843;
    padding-left: 5px;
}

.footer-menu li a:hover::before {
    opacity: 1;
}

.social-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #d4a843;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-newsletter h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.newsletter-form button {
    padding: 12px 18px;
    background: #d4a843;
    border: none;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #c49a38;
}

.newsletter-form button svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.credit a {
    color: #d4a843;
    text-decoration: none;
}

.credit a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Main Styles - Global Typography & Layout
   ========================================================================== */
.page-wrapper {
    overflow-x: hidden;
}

.site-content {
    min-height: 100vh;
}

.content-area {
    width: 100%;
}

.widget-area {
    padding: 40px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a843;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0d6b4e;
    box-shadow: 0 0 0 3px rgba(13, 107, 78, 0.1);
}

blockquote {
    border-left: 4px solid #d4a843;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8fdf9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6b4e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.breadcrumb {
    padding: 15px 0;
    background: #f8fdf9;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0d6b4e;
}

.breadcrumb a:hover {
    color: #d4a843;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

.hero-content .section-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #d4a843; }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #d4a843;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.counter {
    font-variant-numeric: tabular-nums;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==========================================================================
   Responsive - Tablet (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1rem; }
    .section-padding { padding: 60px 0; }
    .container { padding: 0 15px; }

    /* Header */
    .mobile-menu-toggle { display: flex; }
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #0d6b4e;
        padding: 80px 20px 40px;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .main-navigation.active { right: 0; }
    .nav-menu { flex-direction: column; gap: 0; }
    .nav-menu li a { padding: 14px 20px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-menu li a::after { display: none; }
    .nav-menu li .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255, 255, 255, 0.1); border-radius: 0; box-shadow: none; padding: 0; }
    .nav-menu li .sub-menu li a { color: #ffffff; padding-left: 40px; }
    .nav-menu li .sub-menu li a:hover { background: rgba(255, 255, 255, 0.1); }

    /* Hero */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-content .section-badge { font-size: 0.75rem; padding: 6px 18px; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .stat-number { font-size: 2rem; }
    .scroll-indicator { bottom: 20px; }

    /* Features */
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .feature-card { padding: 30px 20px; }
    .feature-icon { width: 70px !important; height: 70px !important; min-width: 70px !important; }
    .feature-icon svg { width: 35px !important; height: 35px !important; min-width: 35px !important; }
    .feature-title { font-size: 1.1rem; }
    .feature-description { font-size: 0.85rem; }

    /* News */
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .news-card-image { height: 180px; }
    .news-card-title { font-size: 1.1rem; }

    /* Headmaster */
    .headmaster-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .headmaster-photo { display: flex; justify-content: center; }
    .headmaster-photo img { max-width: 280px; }
    .headmaster-quote { text-align: left; font-size: 1.15rem; }
    .headmaster-info { justify-content: center; }

    /* CTA */
    .cta-content h2 { font-size: 2rem; }
    .cta-content p { font-size: 1rem; }

    /* Footer */
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-col-1 { grid-column: span 2; }
    .footer-widgets { padding: 50px 0 30px; }
    .footer-title { font-size: 1.1rem; }

    /* Page Header */
    .page-header { padding: 140px 0 50px; }
    .page-header h1 { font-size: 2rem; }
}

/* ==========================================================================
   Responsive - Mobile Large (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    /* Hero */
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    .hero-content .section-badge { margin-bottom: 15px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { min-width: 160px; padding: 12px 28px; font-size: 0.875rem; }
    .hero-stats { gap: 25px; margin-top: 35px; padding-top: 25px; }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.8rem; }
    .hero-shape { display: none; }

    /* Features */
    .features-grid { grid-template-columns: 1fr !important; gap: 20px !important; max-width: 400px; margin: 0 auto; }
    .feature-card { padding: 25px 20px; display: flex; flex-direction: row; align-items: center; gap: 20px; text-align: left; }
    .feature-icon { width: 60px !important; height: 60px !important; min-width: 60px !important; margin-bottom: 0 !important; }
    .feature-icon svg { width: 30px !important; height: 30px !important; min-width: 30px !important; }
    .feature-title { font-size: 1rem; margin-bottom: 5px; }
    .feature-description { font-size: 0.8rem; line-height: 1.5; }

    /* News */
    .news-grid { grid-template-columns: 1fr !important; max-width: 400px; margin: 0 auto; }
    .news-card-image { height: 200px; }
    .news-card-content { padding: 20px; }
    .news-card-title { font-size: 1.1rem; margin-bottom: 8px; }
    .news-card-excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; margin-bottom: 10px; }

    /* Headmaster */
    .headmaster-wrapper { gap: 30px; }
    .headmaster-photo img { max-width: 220px; border-radius: 16px; }
    .headmaster-quote { font-size: 1rem; line-height: 1.7; padding-left: 15px; }
    .headmaster-quote-icon { width: 50px; height: 50px; }
    .headmaster-quote-icon svg { width: 24px; height: 24px; }
    .headmaster-info-avatar { width: 50px; height: 50px; }
    .headmaster-name { font-size: 1rem; }

    /* CTA */
    .cta-section { padding: 60px 0; }
    .cta-content h2 { font-size: 1.75rem; }
    .cta-content p { font-size: 0.95rem; margin-bottom: 25px; }
    .cta-buttons { gap: 10px; }

    /* Footer */
    .footer-columns { grid-template-columns: 1fr; gap: 30px; }
    .footer-col-1 { grid-column: span 1; }
    .footer-widgets { padding: 40px 0 30px; }
    .footer-bottom { padding: 15px 0; }
    .social-links { gap: 10px; }
    .social-link { width: 38px; height: 38px; }
    .newsletter-form input[type="email"] { padding: 10px 14px; font-size: 0.8rem; }
    .newsletter-form button { padding: 10px 14px; }
    .contact-item { font-size: 0.85rem; gap: 10px; }
    .contact-item svg { width: 16px; height: 16px; }

    /* Page Header */
    .page-header { padding: 120px 0 40px; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header .breadcrumb { font-size: 0.8rem; }
}

/* ==========================================================================
   Responsive - Mobile Small (max-width: 576px)
   ========================================================================== */
@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    .section-title h2 { font-size: 1.5rem; margin-bottom: 10px; }
    .section-title p { font-size: 0.9rem; }
    .section-padding { padding: 40px 0; }
    .btn { padding: 10px 24px; font-size: 0.8rem; letter-spacing: 0.5px; }

    /* Header */
    .site-title { font-size: 1rem; }
    .site-tagline { font-size: 0.6rem; display: none; }
    .site-logo img, .site-logo .custom-logo { max-height: 40px; }

    /* Hero */
    .hero-section { min-height: 100vh; background-attachment: scroll; }
    .hero-content { padding: 0 15px; }
    .hero-content h1 { font-size: 1.6rem; line-height: 1.3; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 20px; }
    .hero-content .section-badge { font-size: 0.7rem; padding: 5px 14px; margin-bottom: 12px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 260px; }
    .hero-stats { flex-direction: column; gap: 15px; margin-top: 30px; padding-top: 20px; }
    .stat-item { display: flex; align-items: center; gap: 10px; }
    .stat-number { font-size: 1.5rem; min-width: 50px; }
    .stat-label { font-size: 0.75rem; margin-top: 0; text-align: left; }
    .scroll-indicator { bottom: 15px; }
    .scroll-indicator span { font-size: 0.65rem; }

    /* Features */
    .features-section { padding: 40px 0; }
    .section-title { margin-bottom: 30px; }
    .features-grid { max-width: 100%; gap: 12px !important; }
    .feature-card { padding: 16px; gap: 14px; border-radius: 12px; }
    .feature-icon { width: 50px !important; height: 50px !important; min-width: 50px !important; border-radius: 12px; }
    .feature-icon svg { width: 24px !important; height: 24px !important; min-width: 24px !important; }
    .feature-title { font-size: 0.9rem; }
    .feature-description { font-size: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* News */
    .news-section { padding: 40px 0; }
    .news-grid { max-width: 100%; }
    .news-card-image { height: 160px; }
    .news-card-category { font-size: 0.65rem; padding: 3px 10px; top: 10px; left: 10px; }
    .news-card-content { padding: 15px; }
    .news-card-meta { font-size: 0.7rem; gap: 10px; margin-bottom: 8px; }
    .news-card-meta svg { width: 12px; height: 12px; }
    .news-card-title { font-size: 0.95rem; margin-bottom: 6px; }
    .news-card-excerpt { font-size: 0.8rem; margin-bottom: 10px; }
    .news-card-link { font-size: 0.8rem; }

    /* Headmaster */
    .headmaster-section { padding: 40px 0; }
    .headmaster-wrapper { gap: 25px; }
    .headmaster-photo img { max-width: 180px; }
    .headmaster-photo::before { width: 60px; height: 60px; top: -10px; left: -10px; }
    .headmaster-photo::after { width: 50px; height: 50px; bottom: -10px; right: -10px; }
    .headmaster-quote-icon { width: 40px; height: 40px; margin-bottom: 15px; }
    .headmaster-quote-icon svg { width: 20px; height: 20px; }
    .headmaster-quote { font-size: 0.9rem; line-height: 1.6; padding-left: 12px; margin-bottom: 20px; }
    .headmaster-info-avatar { width: 40px; height: 40px; }
    .headmaster-name { font-size: 0.9rem; }
    .headmaster-title { font-size: 0.8rem; }

    /* CTA */
    .cta-section { padding: 40px 0; }
    .cta-content h2 { font-size: 1.4rem; margin-bottom: 12px; }
    .cta-content p { font-size: 0.85rem; margin-bottom: 20px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 260px; }

    /* Footer */
    .footer-widgets { padding: 30px 0 20px; }
    .footer-title { font-size: 1rem; margin-bottom: 15px; }
    .footer-description { font-size: 0.8rem; margin-bottom: 15px; }
    .footer-contact { gap: 10px; }
    .contact-item { font-size: 0.8rem; }
    .footer-menu li { margin-bottom: 8px; }
    .footer-menu li a { font-size: 0.8rem; }
    .social-links { gap: 8px; margin-bottom: 20px; }
    .social-link { width: 36px; height: 36px; border-radius: 8px; }
    .social-link svg { width: 16px; height: 16px; }
    .footer-newsletter h5 { font-size: 0.9rem; margin-bottom: 10px; }
    .newsletter-form input[type="email"] { padding: 8px 12px; font-size: 0.75rem; }
    .newsletter-form button { padding: 8px 12px; }
    .newsletter-form button svg { width: 14px; height: 14px; }
    .footer-bottom { padding: 12px 0; }
    .footer-bottom-content { gap: 8px; }
    .copyright { font-size: 0.75rem; }
    .credit { font-size: 0.7rem; }

    /* Page Header */
    .page-header { padding: 100px 0 30px; }
    .page-header h1 { font-size: 1.4rem; }
    .page-header .breadcrumb { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll, .animate-fade-left, .animate-fade-right, .animate-scale { opacity: 1; transform: none; }
    .hero-content .section-badge, .hero-content h1, .hero-content p, .hero-buttons, .hero-stats { opacity: 1; }
}

/* ==========================================================================
   WordPress Core Style Overrides
   ========================================================================== */
.wp-block,
.wp-block-columns,
.wp-block-group,
.entry-content > *,
.entry-content > .wp-block {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.entry-content {
    width: 100% !important;
}

/* Fix alignment issues */
.entry-content .alignwide,
.entry-content .alignfull {
    margin-left: calc(-1 * 20px) !important;
    margin-right: calc(-1 * 20px) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
}

/* Ensure images don't overflow */
.entry-content img {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix WordPress block spacing */
.entry-content > p:first-child {
    margin-top: 0;
}

.entry-content > p:last-child {
    margin-bottom: 0;
}
