/* 
   SB DREAMS BRIDGE Main Stylesheet
   Theme Color: #1E90FF (Dodger Blue)
   Fonts: Raleway (headers), Open Sans (body)
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1E90FF;
    --primary-dark: #1873CC;
    --primary-light: #5CACFF;
    --secondary-color: #FF6B35;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --success-color: #28A745;
    --error-color: #DC3545;
    --warning-color: #FFC107;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

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

section {
    padding: 80px 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Updated About Section Styles */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    margin: 30px 0 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-services {
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-highlight {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-highlight:hover {
    transform: translateY(-5px);
}

.service-highlight i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-highlight h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-conclusion {
    font-style: italic;
    margin-top: 25px;
    font-weight: 500;
    color: var(--text-dark);
}

.about-values {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .about-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-values {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

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

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

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

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

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    max-width: 180px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--bg-light);
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    flex: 1;
    min-width: 150px;
    background-color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat .label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== TESTIMONIALS SECTION ===== */
/* Success Stories Section */
.testimonials {
    
    background-color: var(--bg-light);
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Testimonial Card */
.testimonial {
    background: #fff;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.testimonial.active {
    display: block;
}

/* Fade animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(40px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Quote Styling */
.testimonial .quote {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
}

.testimonial .quote i {
    color: #4facfe;
    font-size: 2rem;
    margin: 0 8px;
}

/* Author Info */
.testimonial .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial .author img {
    border-radius: 50%;
    border: 4px solid #4facfe;
    width: 70px;
    height: 70px;
}

.testimonial .author-info h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #111;
}

.testimonial .author-info p {
    font-size: 1rem;
    margin: 0;
    color: #555;
}

/* Navigation Buttons */
.testimonial-controls {
    margin-top: 35px;
}

.testimonial-controls button {
    background: #fff;
    border: none;
    margin: 0 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    font-size: 1.3rem;
    cursor: pointer;
    color: #4facfe;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background: #4facfe;
    color: #fff;
    transform: scale(1.1);
}


/* ===== BOOKING SECTION ===== */
.booking {
    background-color: white;
}

.booking h2 {
    text-align: center;
    margin-bottom: 20px;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift with aspect ratio */
.image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

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

/* Thank you and error pages */
.thank-you-section, .error-section {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content, .error-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 5rem;
    color: #28A745;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 5rem;
    color: #DC3545;
    margin-bottom: 20px;
}

.redirect-message {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin: 30px 0;
}


/* ===== FOOTER ===== */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x400') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    color: white;
    margin-bottom: 15px;
}

/* ===== RESOURCES PAGE ===== */
.resources-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.resource-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    overflow-x: auto;
}

.resource-tabs li {
    padding: 15px 25px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    position: relative;
}

.resource-tabs li:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.resource-tabs li.active {
    color: var(--primary-color);
}

.resource-tabs li.active:after {
    width: 100%;
}

.resource-tab-content {
    display: none;
}

.resource-tab-content.active {
    display: block;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.resource-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-icon i {
    font-size: 2rem;
    color: white;
}

.resource-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.resource-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
}

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

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.blog-content h3 {
    margin: 10px 0;
}

.blog-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
    border-radius: 4px;
    background-color: white;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-pagination a.active {
    background-color: var(--primary-color);
    color: white;
}

.blog-pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle .fa-plus:before {
    content: "\f068";
}

/* Hero Slideshow Styles */
.hero, .page-header {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
    color: white;
    text-align: center;
}

.page-header {
    padding: 80px 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
    z-index: -1;
}

.hero h1, .page-header h1 {
    color: white;
}


/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.social-connect {
    background-color: var(--bg-light);
    text-align: center;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    color: white;
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: translateY(-10px);
    color: white;
}

.social-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.social-item.facebook {
    background-color: #3b5998;
}

.social-item.twitter {
    background-color: #1da1f2;
}

.social-item.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-item.linkedin {
    background-color: #0077b5;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://via.placeholder.com/1920x600') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta .btn-primary {
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}