/*
Theme Name:   Astra Child - Nabit Academy
Theme URI:    https://wpastra.com/
Description:  Custom child theme for Nabit Academy with Bootstrap
Author:       Nabit Academy
Author URI:   https://example.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ==========================================================================
   Custom Styles for Nabit Academy
   ========================================================================== */

/* Root Variables - Arabic RTL Support */
:root {
  --primary-color: #00a89d;
  --secondary-color: #0d6efd;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
}

/* RTL Support */
body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
}

/* IMPORTANT: Only override content area, NOT header or footer */
/* This allows Customizer styles to work on header/footer */

/* Full-width content sections - Only for our custom sections */
.page-template-template-homepage #primary {
  max-width: 100%;
  padding: 0;
}

.page-template-template-homepage .entry-content {
  max-width: 100%;
  padding: 0;
}

/* Make our sections full-width */
.page-template-template-homepage section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* But keep Bootstrap containers working inside sections */
.page-template-template-homepage section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.hero-section {
  background: white;
  color: var(--text-dark);
  padding: 100px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: right;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: none;
}

.hero-content .lead {
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.95;
}

.hero-content p {
  opacity: 0.95;
}

.hero-image {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.btn-register {
  background: var(--primary-color);
  color: white;
  padding: 14px 45px;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 30px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 168, 157, 0.3);
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 168, 157, 0.4);
  background: #008c84;
  color: white;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Card Styles */
.card-custom {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  background: white;
}

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

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

.card-custom h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

/* Educational Stages */
.stage-item {
  border-right: 4px solid var(--primary-color);
  padding: 25px;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stage-item:hover {
  background: #f8f9fa;
  transform: translateX(-5px);
}

.stage-item .icon {
  font-size: 2.5rem;
  margin-left: 20px;
}

.stage-item h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.stage-item .badge {
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  margin-right: 10px;
}

.stage-item p {
  color: var(--text-light);
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.contact-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  height: 100%;
}

.contact-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-card h5 {
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  color: white;
}

.site-footer h5 {
  font-weight: bold;
  margin-bottom: 20px;
}

.site-footer a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Utility Classes */
.section-padding {
  padding: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  .hero-image {
    margin-bottom: 20px;
    animation: none;
  }

  .hero-image img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

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

  .stage-item {
    border-right: none;
    border-top: 4px solid var(--primary-color);
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .hero-content {
    padding-right: 20px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }
}
@media (max-width: 769px) {
	header .custom-logo-link img {
		width: 120px;
		max-width: 120px
	}
}

.ast-primary-header-bar {
  background-color: #fff;
}

header#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link:hover {
  color: #000;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	fill: #000;
}
