/* Global Styles */
:root {
  /* Light theme (default) */
  --bg-color: #f9f9f9;
  --text-color: #333;
  --header-bg: white;
  --header-shadow: rgba(0, 0, 0, 0.1);
  --header-border: #eee;
  --section-bg: white;
  --section-alt-bg: #f1f8e9;
  --heading-color: #2c3e50;
  --primary-color: #4CAF50;
  --primary-hover: #45a049;
  --secondary-color: #3498db;
  --secondary-hover: #2980b9;
  --footer-bg: #f8f9fa; /* Light gray background */
  --footer-text: #495057; /* Dark gray text */
  --card-shadow: rgba(0, 0, 0, 0.1);
  --nursery-location: #7f8c8d;
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --staff-position: #4CAF50;
  --feature-icon: #4CAF50;
  --footer-border: rgba(0, 0, 0, 0.1);
  --footer-highlight: #4CAF50;
}

[data-theme="dark"] {
  /* Dark theme */
  --bg-color: rgba(38, 38, 38, 1.0);
  --text-color: #f0f0f0;
  --header-bg: rgba(30, 30, 30, 1.0);
  --header-shadow: rgba(0, 0, 0, 0.3);
  --header-border: #444;
  --section-bg: rgba(50, 50, 50, 1.0);
  --section-alt-bg: rgba(40, 40, 40, 1.0);
  --heading-color: #e0e0e0;
  --primary-color: #4CAF50;
  --primary-hover: #5cb85c;
  --secondary-color: #3498db;
  --secondary-hover: #2980b9;
  --footer-bg: rgba(20, 20, 20, 1.0);
  --footer-text: #f0f0f0;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --nursery-location: #bdc3c7;
  --hero-overlay: rgba(0, 0, 0, 0.7);
  --staff-position: #5cb85c;
  --feature-icon: #5cb85c;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-highlight: #5cb85c;
}

body, header, section, .btn, .card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: var(--bg-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--heading-color);
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--header-border);
}

.logo {
  display: inline-block;
  line-height: 0; /* removes extra space below image */
}

.logo img {
  height: auto;
  max-height: 60px; /* or use max-width: 180px if preferred */
  width: auto;
}

.logo span {
    color: var(--heading-color);
}

.language-selector {
    position: relative;
    margin-right: 20px;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

nav {
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    margin-left: 15px;
    color: var(--text-color);
}

.dark-icon {
    display: none;
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="dark"] .dark-icon {
    display: inline;
}

/* Hero Section */
.hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1586771107445-d3ca888129ce');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

/* Video Gallery */
.video-gallery {
    background-color: var(--section-bg);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s;
    background-color: var(--section-bg);
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    color: var(--heading-color);
}

/* Why Choose Us */
.why-choose-us {
    background-color: var(--section-alt-bg);
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--section-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--feature-icon);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
}

/* Our Staff */
.staff-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.staff-card {
    background-color: var(--section-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    text-align: center;
}

.staff-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    margin-bottom: 5px;
    color: var(--heading-color);
}

.staff-position {
    color: var(--staff-position);
    margin-bottom: 15px;
    font-weight: 500;
}

.staff-info p {
    color: var(--text-color);
}

/* Nurseries List */
.nurseries-list {
    background-color: var(--section-alt-bg);
}

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

.nursery-card {
    background-color: var(--section-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.nursery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.nursery-details {
    padding: 20px;
}

.nursery-details h3 {
    margin-bottom: 10px;
    color: var(--heading-color);
}

.nursery-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--nursery-location);
    margin-bottom: 15px;
}

.nursery-details p {
    color: var(--text-color);
}

/* Footer Styles - Approach 2 Implementation */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--footer-text);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--footer-highlight);
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.footer-column ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li i {
    color: var(--footer-highlight);
    width: 20px;
    text-align: center;
}

.footer-column ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--footer-highlight);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--footer-text);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--footer-highlight);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--footer-highlight);
    text-decoration: none;
    margin: 0 5px;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .left-aligned {
    text-align: left !important;
}