/* =====================================================
   ROYAL ACADEMY - MAIN STYLESHEET
   A beautiful, modern school website design
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2442;
    --secondary: #c9a227;
    --secondary-light: #d4b54a;
    --secondary-dark: #a88a1f;
    --accent: #e53e3e;
    
    --white: #ffffff;
    --cream: #faf8f5;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(44, 82, 130, 0.9) 100%);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --section-padding: 6rem;
    --container-padding: 1.5rem;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--gray-700); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; -ms-interpolation-mode: bicubic; }
a { text-decoration: none; color: inherit; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--primary); }

/* UTILITIES */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: var(--section-padding) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-subtitle { display: inline-block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--secondary); margin-bottom: 1rem; position: relative; }
.section-subtitle::before, .section-subtitle::after { content: ''; position: absolute; top: 50%; width: 40px; height: 2px; background: var(--secondary); }
.section-subtitle::before { left: -55px; }
.section-subtitle::after { right: -55px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-description { color: var(--gray-500); font-size: 1.125rem; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius); transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--gradient-gold); color: var(--primary); box-shadow: var(--shadow-md); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* PRELOADER */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); display: flex; align-items: center; justify-content: center; z-index: 10000; transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; color: var(--white); }
.loader .crown-icon { font-size: 4rem; animation: pulse 1.5s ease-in-out infinite; }
.loader .preloader-logo { width: 80px; height: auto; margin: 0 auto; animation: pulse 1.5s ease-in-out infinite; }
.loader span { display: block; margin-top: 1rem; font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 3px; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.top-bar { background: var(--primary-dark); padding: 0.5rem 0; font-size: 0.875rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info { display: flex; gap: 1.5rem; }
.contact-info a { color: var(--gray-300); display: flex; align-items: center; gap: 0.5rem; }
.contact-info a:hover { color: var(--secondary); }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--gray-300); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.social-links a:hover { background: var(--secondary); color: var(--primary); }
.navbar { background: var(--white); padding: 1rem 0; box-shadow: var(--shadow); transition: var(--transition); }
.header.scrolled .navbar { padding: 0.75rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo .crown { font-size: 2.5rem; line-height: 1; }
.logo .logo-icon { width: 50px; height: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-tagline { font-size: 0.75rem; color: var(--gray-500); letter-spacing: 1px; }
.nav-menu { display: flex; gap: 0.5rem; }
.nav-link { padding: 0.75rem 1.25rem; font-weight: 500; color: var(--gray-700); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--secondary); border-radius: 2px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 30px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 5px; }
.nav-toggle span { display: block; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* HERO SLIDER */
.hero-slider { position: relative; min-height: 100vh; overflow: hidden; }
.slider-container { position: relative; height: 100vh; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%); }
.slide-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 900px; margin: 0 auto; padding: 2rem; padding-top: 120px; }
.slide-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: var(--white); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease; }
.slide-title span { color: var(--secondary); }
.slide-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.8; animation: fadeInUp 0.8s ease 0.2s backwards; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 55px; height: 55px; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.25rem; cursor: pointer; transition: var(--transition); backdrop-filter: blur(5px); }
.slider-arrow:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }
.slider-indicators { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 0.75rem; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: var(--transition); }
.indicator:hover { background: rgba(255,255,255,0.7); }
.indicator.active { background: var(--secondary); transform: scale(1.3); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201, 162, 39, 0.2); border: 1px solid var(--secondary); padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--secondary); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats Bar */
.stats-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; background: rgba(26, 54, 93, 0.95); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1); }
.stats-bar-content { display: flex; justify-content: center; gap: 4rem; padding: 1.5rem 0; }
.stats-bar .stat-item { text-align: center; }
.stats-bar .stat-number { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.stats-bar .stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 1px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* FEATURES */
.features { background: var(--white); position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--cream); padding: 2.5rem; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-gold); transform: scaleX(0); transition: var(--transition); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--white); transition: var(--transition); }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-description { color: var(--gray-500); font-size: 0.95rem; }

/* ABOUT */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-images { position: relative; }
.about-image-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-image-main img { width: 100%; height: 450px; object-fit: cover; }
.about-image-secondary { position: absolute; bottom: -30px; right: -30px; width: 200px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); border: 5px solid var(--white); }
.about-image-secondary img { width: 100%; height: 150px; object-fit: cover; }
.experience-badge { position: absolute; top: -20px; left: -20px; width: 120px; height: 120px; background: var(--gradient-gold); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-lg); z-index: 1; }
.experience-badge .number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.experience-badge .text { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.about-content { padding-right: 2rem; }
.about-content .section-subtitle { text-align: left; }
.about-content .section-subtitle::before { display: none; }
.about-content .section-title { text-align: left; }
.about-text { color: var(--gray-600); margin-bottom: 2rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.about-feature { display: flex; align-items: center; gap: 0.75rem; color: var(--gray-700); }
.about-feature i { width: 24px; height: 24px; background: var(--secondary); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

/* NEWS */
.news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.news-card { background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-image { height: 220px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.news-card:hover .news-image img { transform: scale(1.1); }
.news-content { padding: 1.5rem; }
.news-date { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--secondary); margin-bottom: 0.75rem; }
.news-title { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.4; }
.news-title a:hover { color: var(--secondary); }
.news-excerpt { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 1rem; }
.news-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary); }
.news-link:hover { color: var(--secondary); gap: 0.75rem; }

/* TESTIMONIALS */
.testimonials { background: var(--gradient-primary); position: relative; overflow: hidden; }
.testimonials::before { content: ''; position: absolute; inset: 0; background-image: 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.05'%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"); }
.testimonials .section-subtitle { color: var(--secondary); }
.testimonials .section-title, .testimonials .section-description { color: var(--white); }
.testimonials-slider-wrapper { position: relative; max-width: 800px; margin: 0 auto; }
.testimonials-slider { position: relative; min-height: 280px; }
.testimonial-card { background: var(--white); padding: 3rem; border-radius: var(--radius-lg); text-align: center; position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateX(50px); transition: all 0.5s ease; pointer-events: none; }
.testimonial-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.testimonial-quote { position: absolute; top: 1.5rem; left: 2rem; font-size: 3rem; color: var(--secondary); opacity: 0.3; }
.testimonial-content { font-size: 1.125rem; color: var(--gray-600); font-style: italic; margin-bottom: 2rem; position: relative; z-index: 1; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.testimonial-avatar { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 3px solid var(--secondary); }
.testimonial-info { text-align: left; }
.testimonial-info h4 { font-size: 1.125rem; color: var(--primary); margin-bottom: 0.15rem; }
.testimonial-info span { font-size: 0.875rem; color: var(--gray-500); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.25rem; cursor: pointer; transition: var(--transition); z-index: 10; }
.slider-nav:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.slider-prev { left: -80px; }
.slider-next { right: -80px; }
.slider-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); }
.slider-dot:hover { background: rgba(255,255,255,0.5); }
.slider-dot.active { background: var(--secondary); transform: scale(1.2); }

/* CTA */
.cta { background: var(--cream); text-align: center; }
.cta-card { background: var(--gradient-gold); padding: 4rem; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--primary); margin-bottom: 1rem; }
.cta-text { color: var(--primary-dark); font-size: 1.125rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* PAGE HEADERS */
.page-header { background: var(--gradient-primary); padding: 180px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: 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='%23c9a227' fill-opacity='0.08'%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"); }
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.8); }
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ABOUT PAGE */
.about-page-section { background: var(--white); }
.mission-vision { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.mv-card { background: var(--cream); padding: 2.5rem; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mv-icon { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--white); }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.mv-card p { color: var(--gray-600); }

/* PROGRAMS */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.program-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-image { height: 200px; overflow: hidden; }
.program-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.program-card:hover .program-image img { transform: scale(1.1); }
.program-content { padding: 1.5rem; }
.program-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.program-content p { color: var(--gray-600); margin-bottom: 1rem; }
.program-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.program-features span { background: var(--cream); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; color: var(--gray-600); }

/* ADMISSIONS */
.admissions-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); text-align: center; position: relative; box-shadow: var(--shadow); }
.step-number { width: 60px; height: 60px; background: var(--gradient-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0 auto 1.5rem; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.step-card p { color: var(--gray-600); font-size: 0.95rem; }

/* GALLERY */
.gallery-page { min-height: 100vh; background: var(--cream); }
.page-subtitle { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; margin-bottom: 0.5rem; }
.gallery-filters { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn { padding: 0.75rem 1.5rem; background: var(--white); border: 2px solid var(--gray-200); border-radius: 50px; font-weight: 500; color: var(--gray-600); transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; }
.filter-btn i { font-size: 0.9rem; }
.filter-btn:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: var(--shadow-md); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.6) 40%, transparent 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: var(--transition); }
.gallery-category { position: absolute; top: 1rem; left: 1rem; background: var(--secondary); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay i { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.gallery-overlay h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.25rem; text-align: center; }
.gallery-overlay p { color: rgba(255, 255, 255, 0.85); font-size: 0.875rem; text-align: center; }

/* Masonry-like variation for first items */
.gallery-grid .gallery-item:nth-child(5n+1) { grid-row: span 1; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.97); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(10px); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90%; max-height: 90%; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.5); animation: lightboxFadeIn 0.3s ease; }
@keyframes lightboxFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); cursor: pointer; transition: var(--transition); border: none; z-index: 10; }
.lightbox-close:hover { background: var(--secondary); transform: rotate(90deg); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--white); cursor: pointer; transition: var(--transition); border: 2px solid rgba(255,255,255,0.3); }
.lightbox-nav:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-caption { text-align: center; color: var(--white); margin-top: 1.5rem; padding: 0 2rem; }
.lightbox-caption h4 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.5rem; }
.lightbox-caption p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* CONTACT */
.contact-page { padding-top: 140px; min-height: 100vh; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info-card { background: var(--gradient-primary); padding: 3rem; border-radius: var(--radius-lg); color: var(--white); }
.contact-info-card h3 { color: var(--white); font-size: 1.75rem; margin-bottom: 1rem; }
.contact-info-card > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }
.contact-info-list { margin-bottom: 2rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item i { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--secondary); flex-shrink: 0; }
.contact-info-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-item p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.contact-social { display: flex; gap: 1rem; }
.contact-social a { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.contact-social a:hover { background: var(--secondary); color: var(--primary); }
.contact-form-card { background: var(--white); padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.contact-form-card h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; color: var(--gray-700); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* NEWS PAGE */
.news-page { padding-top: 140px; min-height: 100vh; background: var(--cream); }
.news-list { max-width: 800px; margin: 0 auto; }
.news-article { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); transition: var(--transition); }
.news-article:hover { box-shadow: var(--shadow-lg); }
.news-article-image { height: 300px; overflow: hidden; }
.news-article-image img { width: 100%; height: 100%; object-fit: cover; }
.news-article-content { padding: 2rem; }
.news-article-content h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.news-article-content p { color: var(--gray-600); margin-bottom: 1.5rem; }

/* FOOTER */
.footer { background: var(--primary-dark); color: var(--gray-300); position: relative; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; color: var(--cream); line-height: 0; }
.footer-wave svg { display: block; width: 100%; height: 100px; }
.footer-content { padding-top: 8rem; padding-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; }
.footer-logo .crown { font-size: 2rem; }
.footer-logo .footer-logo-icon { width: 45px; height: auto; flex-shrink: 0; }
.footer-section p { margin-bottom: 1.5rem; line-height: 1.8; }
.footer-section h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.75rem; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--secondary); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); color: var(--primary); }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--gray-300); display: flex; align-items: center; gap: 0.5rem; }
.footer-links a::before { content: '→'; color: var(--secondary); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li { display: flex; gap: 1rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--secondary); width: 20px; flex-shrink: 0; margin-top: 0.25rem; }
.footer-bottom { background: rgba(0, 0, 0, 0.2); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.9rem; }

/* SCROLL TO TOP */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--gradient-primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; border: none; cursor: pointer; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); background: var(--gradient-gold); color: var(--primary); }

/* =====================================================
   RESPONSIVE BREAKPOINTS
   - 1280px: Large Desktop
   - 1024px: Tablet Landscape
   - 768px: Tablet Portrait  
   - 576px: Mobile Large
   - 480px: Mobile Small
   ===================================================== */

/* Large Desktop */
@media (max-width: 1280px) {
    .container { max-width: 1140px; }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root { --section-padding: 4rem; }
    .about-grid { gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-prev { left: 1rem; }
    .slider-next { right: 1rem; }
    .slider-nav { width: 45px; height: 45px; font-size: 1rem; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root { --section-padding: 3rem; --container-padding: 1rem; }
    .top-bar { display: none; }
    .navbar { padding: 1rem 0; }
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 80px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); transform: translateY(-150%); opacity: 0; transition: var(--transition); z-index: 999; max-height: calc(100vh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-menu.active { transform: translateY(0); opacity: 1; }
    .nav-link { padding: 1rem; border-bottom: 1px solid var(--gray-100); display: block; min-height: 48px; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .slide-content { padding-top: 100px; padding-left: 1rem; padding-right: 1rem; }
    .slide-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .slide-subtitle { font-size: 1rem; }
    .slider-prev, .slider-next { display: none; }
    .slider-indicators { bottom: 90px; }
    .stats-bar-content { gap: 1rem; padding: 1rem 0.5rem; flex-wrap: wrap; justify-content: center; }
    .stats-bar .stat-item { min-width: 70px; }
    .stats-bar .stat-number { font-size: 1.5rem; }
    .stats-bar .stat-label { font-size: 0.65rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-images { order: -1; margin-bottom: 2rem; }
    .about-image-secondary { right: auto; left: 50%; transform: translateX(-50%); }
    .about-content { padding-right: 0; text-align: center; }
    .about-content .section-subtitle, .about-content .section-title { text-align: center; }
    .about-features { justify-content: center; grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-section p { text-align: justify; }
    .footer-section h3::after { left: 50%; transform: translateX(-50%); }
    .footer-social, .footer-contact li { justify-content: center; }
    .footer-links { display: flex; flex-direction: column; align-items: center; }
    .footer-links a { justify-content: center; padding: 0.5rem; min-height: 44px; }
    .footer-links a::before { display: none; }
    .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature-card { padding: 2rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-filters { gap: 0.5rem; flex-wrap: wrap; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; min-height: 44px; }
    .testimonials-slider-wrapper { padding: 0; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .page-header { padding: 140px 0 60px; }
    .page-header h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .contact-grid { gap: 2rem; }
    .btn { min-height: 44px; }
}

/* Mobile Large */
@media (max-width: 576px) {
    :root { --section-padding: 2.5rem; }
    .slide-title { font-size: 1.5rem; line-height: 1.3; }
    .slide-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .slide-content .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .stats-bar-content { gap: 0.5rem; }
    .stats-bar .stat-item { min-width: 70px; padding: 0 0.25rem; }
    .stats-bar .stat-number { font-size: 1.25rem; }
    .stats-bar .stat-label { font-size: 0.6rem; letter-spacing: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 16/10; }
    .filter-btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .filter-btn i { display: none; }
}

/* Mobile Small */
@media (max-width: 480px) {
    .section-subtitle::before, .section-subtitle::after { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .contact-info-card, .contact-form-card { padding: 1.25rem; }
    .testimonial-content { font-size: 0.95rem; line-height: 1.7; }
    .testimonial-quote { font-size: 1.5rem; top: 0.75rem; left: 0.75rem; }
    .testimonial-avatar { width: 50px; height: 50px; }
    .testimonial-info h4 { font-size: 1rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .footer-content { padding-top: 6rem; }
    .footer-wave svg { height: 60px; }
    .mv-card { padding: 1.5rem; }
    .mv-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .scroll-top { width: 45px; height: 45px; bottom: 1rem; right: 1rem; }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover { transform: none; }
    .feature-card:hover { transform: none; }
    .news-card:hover { transform: none; }
    .gallery-item .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(26, 54, 93, 0.8) 0%, transparent 60%); }
    .gallery-overlay i { display: none; }
    .nav-link::after { display: none; }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important; 
    }
    html { scroll-behavior: auto; }
}

/* Print Styles */
@media print {
    .header, .footer, .scroll-top, #preloader, .slider-nav, .slider-indicators { display: none !important; }
    .hero-slider { min-height: auto; }
    body { background: white; color: black; }
    a { text-decoration: underline; }
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
