* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
   background-color: #f5f5f7;
}

/* Navigation */
.nav-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 15px 30px;
   background-color: #fff;
   border-bottom: 1px solid #eee;
   box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
   display: flex;
   align-items: center;
}

.logo img {
   height: 40px;
}

.logo .text {
   font-size: 1.2rem;
   font-weight: 600;
   margin-left: 10px;
   color: #333;
}

.logo .text span {
   color: #00b3b0;
}

.nav-links {
   display: flex;
   gap: 20px;
}

.nav-links a {
   text-decoration: none;
   color: #333;
   font-weight: 500;
   padding: 5px 10px;
   transition: color 0.3s;
}

.nav-links a:hover {
   color: #00b3b0;
}

.cta-buttons {
   display: flex;
   gap: 10px;
}

.cta-button {
   padding: 10px 20px;
   border-radius: 25px;
   text-decoration: none;
   font-weight: 500;
   transition: all 0.3s;
}

.primary-button {
   background-color: #f89c33;
   color: white;
}

.secondary-button {
   background-color: #00b3b0;
   color: white;
}

/* Hero section - updated to match the provided image */
.hero-section {
   background: linear-gradient(135deg, #e8ceff 0%, #c4ddff 100%);
   padding: 60px 40px;
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
   border-radius: 0 0 30px 30px;
}

.top-resources {
   margin-bottom: 20px;
}

.top-resources-label {
   color: #333;
   font-size: 0.9rem;
   font-weight: 600;
   position: relative;
   display: inline-block;
   padding-bottom: 10px;
   text-transform: uppercase;
}

.top-resources-label::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 50px;
   height: 3px;
   background-color: #f89c33;
}

.main-content {
   display: flex;
   margin-top: 20px;
   align-items: center;
}

/* Enhanced Content Left Section */
.content-left {
   flex: 1;
   padding-right: 40px;
   position: relative;
   z-index: 2;
   padding-left: 50px;

}

.content-left::before {
   content: '';
   position: absolute;
   left: -10px;
   top: 0;
   height: 100%;
   width: 4px;
   background: linear-gradient(to bottom, #f89c33, #00b3b0);
   border-radius: 2px;
}

.title {
   font-size: 3.2rem;
   color: #333;
   font-weight: 800;
   line-height: 1.2;
   margin-bottom: 25px;
   position: relative;
   text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.title span {
   color: #00b3b0;
}

.subtitle {
   font-size: 1.3rem;
   color: #444;
   margin-bottom: 35px;
   line-height: 1.6;
   max-width: 90%;
   font-weight: 400;
   position: relative;
   padding-left: 15px;
   border-left: 3px solid rgba(248, 156, 51, 0.6);
}

.content-buttons {
   display: flex;
   gap: 15px;
   margin-top: 25px;
}

.content-button {
   padding: 12px 25px;
   border-radius: 30px;
   text-decoration: none;
   font-weight: 600;
   font-size: 1.05rem;
   transition: all 0.3s;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.content-button-primary {
   background-color: #00b3b0;
   color: white;
   box-shadow: 0 4px 12px rgba(0, 179, 176, 0.3);
}

.content-button-primary:hover {
   background-color: #009a97;
   transform: translateY(-3px);
   box-shadow: 0 6px 15px rgba(0, 179, 176, 0.4);
}

.content-button-secondary {
   background-color: transparent;
   color: #333;
   border: 2px solid #f89c33;
}

.content-button-secondary:hover {
   background-color: rgba(248, 156, 51, 0.1);
   transform: translateY(-3px);
}

.content-right {
   flex: 1.3;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Feature image with slider but new styling */
.feature-image {
   width: 100%;
   max-width: 700px;
   height: 450px;
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
   position: relative;
   border: 8px solid white;
}

.header-slider {
   width: 100%;
   height: 100%;
   position: relative;
}

.header-slide {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   opacity: 0;
   transition: opacity 1s ease, transform 0.8s ease;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   align-items: center;
   padding: 20px;
   text-align: center;
   transform: translateX(20px);
   z-index: 1;
}

.header-slide.active {
   opacity: 1;
   transform: translateX(0);
   z-index: 2;
}

.apple-slide-background {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-size: cover;
   background-position: center;
   z-index: -1;
   filter: brightness(0.9);
   transition: transform 8s ease;
}

.header-slide.active .apple-slide-background {
   transform: scale(1.05);
}

/* Updated title and description styling to match the overlay */
.apple-title {
   font-size: 1.8rem;
   margin-bottom: 10px;
   color: white;
   text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
   z-index: 2;
   font-weight: 700;
   position: relative;
}

.apple-description {
   font-size: 1.1rem;
   max-width: 80%;
   margin-bottom: 20px;
   color: white;
   text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
   z-index: 2;
   line-height: 1.5;
   position: relative;
}

/* Add darkened overlay at bottom for text visibility */
.header-slide::before {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 50%;
   background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
   z-index: 1;
}

.apple-button {
   padding: 12px 28px;
   border-radius: 30px;
   text-decoration: none;
   font-weight: 500;
   background-color: #00b3b0;
   color: white;
   border: none;
   cursor: pointer;
   transition: all 0.3s;
   z-index: 2;
   font-size: 1.05rem;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
   position: relative;
}

.apple-button:hover {
   background-color: #009a97;
   transform: translateY(-2px);
   box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.apple-button-danger {
   background-color: #ff4d4d;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apple-button-danger:hover {
   background-color: #ff3333;
   box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.admin-controls {
   display: none;
   gap: 10px;
   margin-top: 20px;
   z-index: 10;
   position: relative;
}

/* Admin controls are now controlled by auth directive */
.admin-controls.visible {
   display: flex;
}

.header-nav {
   position: absolute;
   bottom: 15px;
   left: 0;
   right: 0;
   display: flex;
   justify-content: center;
   gap: 12px;
   z-index: 10;
}

.header-dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background-color: rgba(255, 255, 255, 0.5);
   cursor: pointer;
   transition: all 0.3s;
   border: 2px solid transparent;
}

.header-dot.active {
   background-color: white;
   transform: scale(1.2);
   border-color: rgba(0, 179, 176, 0.5);
}

/* Header Navigation Arrows */
.header-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background-color: rgba(255, 255, 255, 0.3);
   color: white;
   width: 45px;
   height: 45px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   z-index: 10;
   font-size: 1.3rem;
   font-weight: bold;
   transition: all 0.3s;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-arrow:hover {
   background-color: rgba(255, 255, 255, 0.5);
   transform: translateY(-50%) scale(1.1);
}

.header-arrow-left {
   left: 15px;
}

.header-arrow-right {
   right: 15px;
}

/* Progress bar for auto-rotation timing */
.slider-progress {
   position: absolute;
   bottom: 0;
   left: 0;
   height: 3px;
   background-color: rgba(255, 255, 255, 0.7);
   width: 0%;
   transition: width 5s linear;
   z-index: 10;
}

.slider-progress.active {
   width: 100%;
}

/* Decorative elements */
.decorative-circle {
   position: absolute;
   border-radius: 50%;
   background: linear-gradient(135deg, rgba(0, 179, 176, 0.4), rgba(248, 156, 51, 0.4));
   opacity: 0.6;
   z-index: 1;
}

.circle-1 {
   width: 200px;
   height: 200px;
   top: -50px;
   left: -50px;
}

.circle-2 {
   width: 150px;
   height: 150px;
   bottom: -30px;
   right: 20%;
}

/* Responsive design - Updated for better centering on mobile */
@media (max-width: 1200px) {
   .feature-image {
       max-width: 600px;
       height: 400px;
   }
}

@media (max-width: 992px) {
   .title {
       font-size: 2.8rem;
   }
   
   .subtitle {
       font-size: 1.2rem;
   }
   
   .apple-title {
       font-size: 1.6rem;
   }
   
   .feature-image {
       max-width: 550px;
       height: 380px;
   }
}

@media (max-width: 768px) {
   .nav-links {
       display: none;
   }
   
   .main-content {
       flex-direction: column;
   }
   
   .content-left {
       padding-right: 0;
       margin-bottom: 40px;
       text-align: center;
       display: flex;
       flex-direction: column;
       align-items: center;
   }
   
   .content-left::before {
       left: 50%;
       top: -10px;
       height: 4px;
       width: 100px;
       transform: translateX(-50%);
   }
   
   .subtitle {
       max-width: 100%;
       border-left: none;
       padding-left: 0;
       text-align: center;
   }
   
   .content-buttons {
       justify-content: center;
   }
   
   .content-right {
       margin-top: 20px;
       width: 100%;
   }

   .hero-section {
       padding: 40px 30px;
   }

   .title {
       font-size: 2.4rem;
       text-align: center;
   }
   
   .apple-title {
       font-size: 1.4rem;
   }
   
   .apple-description {
       font-size: 1rem;
   }
   
   .feature-image {
       max-width: 100%;
       height: 350px;
   }
}

@media (max-width: 576px) {
   .hero-section {
       padding: 30px 20px;
   }

   .title {
       font-size: 2rem;
   }

   .cta-buttons, .content-buttons {
       flex-direction: column;
       width: 100%;
       max-width: 300px;
       margin-left: auto;
       margin-right: auto;
   }
   
   .content-button {
       width: 100%;
       justify-content: center;
   }
   
   .apple-title {
       font-size: 1.2rem;
   }
   
   .apple-description {
       max-width: 95%;
       font-size: 0.9rem;
   }
   
   .header-arrow {
       width: 40px;
       height: 40px;
       font-size: 1.2rem;
   }
   
   .feature-image {
       height: 300px;
   }
}

@media (max-width: 576px) {
   .content-right {
       display: none; /* Hide the image section on small screens */
   }
   
   .content-left {
       width: 100%;
       text-align: center;
       padding: 0 15px;
       margin-bottom: 0;
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       min-height: 300px; /* Give some height to the hero section even without image */
   }
   
   .main-content {
       justify-content: center; /* Center the remaining content */
   }
   
   .hero-section {
       display: flex;
       align-items: center;
       justify-content: center;
       min-height: 400px; /* Ensure the hero has good height on mobile */
   }
}