/* ==========================================
   RESPONSIVE STYLES FOR EDMASTER WEBSITE
   ========================================== */

/* Additional Base Styles for Better Responsiveness */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure buttons maintain consistent styling across devices */
.btn-demo {
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    /* Hero Section */
    .hero-title {
        font-size: 40px;
    }
    
    .hero-header {
        max-width: 900px;
        padding: 15px;
    }
    
    .hero-image {
        max-width: 600px;
    }
    
    .hero-image img {
        max-width: 600px;
    }
    
    /* Testimonials */
    .testimonial-item {
        margin: 0 10px;
    }
    
    .testimonial-item.left {
        margin-right: -30px;
    }
    
    .testimonial-item.right {
        margin-left: -30px;
    }
    
    /* Features Section */
    .edmaster-features .container {
        max-width: 1140px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    /* Hero Section */
    .hero-title {
        font-size: 35px;
        line-height: 1.3;
    }
    
    .hero-header {
        max-width: 800px;
        padding: 15px;
    }
    
    .hero-image {
        max-width: 500px;
    }
    
    .hero-image img {
        max-width: 500px;
    }
    
    .features-icons {
        right: 5%;
        top: 75%;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Client Logos */
    .client-logos-header h3 {
        font-size: 1.5rem;
    }
    
    /* Testimonials - Stack on medium screens */
    .testimonial-items {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-item {
        margin: 0;
        transform: none !important;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .testimonial-item.left,
    .testimonial-item.right {
        margin: 0 auto;
    }
    
    .testimonial-item.central {
        margin: 0 auto;
    }
    
    .testimonial-content {
        margin: 0 20px;
    }
    
    /* Features cards should stack nicely */
    .features-cards .col-md-4 {
        margin-bottom: 30px;
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero-header {
        max-width: 100%;
        padding: 10px;
        text-align: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin-top: 20px;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        max-width: 300px;
    }
    
    .btn-demo {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        min-width: 200px;
    }
    
    .features-icons {
        position: static;
        justify-content: center;
        margin-top: 20px;
        transform: none;
        gap: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Client Logos Section */
    .client-logos-section .row {
        flex-direction: column;
    }
    
    .client-logos-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .client-logos-header h3 {
        font-size: 1.3rem;
    }
    
    /* Testimonials */
    .testimonial-heading-items {
        flex-direction: column;
        width: 100%;
    }
    
    .heading-item {
        padding: 12px;
        text-align: center;
    }
    
    .heading-item h3 {
        font-size: 1.2rem;
    }
    
    .testimonial-items {
        padding-top: 30px;
    }
    
    .testimonial-content {
        margin: 0 10px;
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
        margin-top: -20px;
    }
    
    .testimonial-image img {
        max-width: 60px;
    }
    
    /* Features Section */
    .features-cards .col-md-4 {
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 20px;
        text-align: center;
        margin: 10px;
    }
    
    .feature-card-title {
        font-size: 1.1rem;
    }
    
    .feature-card-description {
        font-size: 14px;
    }
    
    /* Section spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    /* Hero Section */
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .hero-header {
        padding: 5px;
    }
    
    .hero-image {
        max-width: 300px;
        margin-top: 15px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .hero-buttons {
        max-width: 250px;
        gap: 8px;
    }
    
    .btn-demo {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .features-icons {
        gap: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Client Logos */
    .client-logos-header h3 {
        font-size: 1.1rem;
    }
    
    .client-logo {
        height: 40px;
        margin: 0 10px;
    }
    
    /* Testimonials */
    .heading-item {
        padding: 10px;
    }
    
    .heading-item h3 {
        font-size: 1rem;
    }
    
    .testimonial-content {
        margin: 0 5px;
        padding: 15px;
    }
    
    .testimonial-content p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .client-info {
        font-size: 12px !important;
        font-weight: bold;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
        margin-top: -15px;
    }
    
    .testimonial-image img {
        max-width: 50px;
    }
    
    /* Features Section */
    .features-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 15px;
        margin: 5px;
    }
    
    .feature-card-title {
        font-size: 1rem;
    }
    
    .feature-card-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .feature-card-icon {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    /* Why EdMaster Section */
    .why-edmaster .row {
        flex-direction: column;
    }
    
    .why-item {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .why-item p {
        font-size: 12px;
    }
    
    .why-icon {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Better container spacing */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    /* Hero Section */
    .hero-title {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero-buttons {
        max-width: 200px;
    }
    
    .btn-demo {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 160px;
    }
    
    /* Features Section */
    .features-title {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 12px;
        margin: 3px;
    }
    
    .feature-card-description {
        font-size: 12px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 12px;
    }
    
    .testimonial-content p {
        font-size: 12px;
    }
    
    .client-info {
        font-size: 11px !important;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-image {
        max-width: 350px;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

/* High DPI displays */
@media (min-resolution: 192dpi) {
    .hero-image img,
    .client-logo,
    .testimonial-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none !important;
        min-height: auto !important;
    }
    
    .testimonial-item {
        transform: none !important;
        margin: 0 !important;
    }
    
    .features-icons {
        display: none;
    }
    
    .hero-buttons {
        display: none;
    }
}