/* ===============================================
   TOPLU SMS - INLINE CSS CONSOLIDATION
   =============================================== */

/* ===============================================
   INLINE STYLES FROM PHP FILE
   =============================================== */

/* Breadcrumb hidden span */
.breadcrumb-hidden {
    opacity: 0;
    width: 0;
    position: absolute;
}

/* Section backgrounds */
.section-white {
    padding: 50px 0;
    background: #fff;
}

.section-light {
    padding: 50px 0;
    background: #f8f9fa;
}

/* SMS Packages Section */
.sms-packages-title {
    font-weight: 700;
}

/* Package Cards */
.package-card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.package-card-popular {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.package-price {
    font-size: 32px;
}

.package-features {
    line-height: 1.9;
}

/* Hero Section */
.hero-card {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 192, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
    z-index: 1;
}

.hero-card .card-body {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.hero-title {
    font-weight: 700;
    color: #060394;
    margin-bottom: 20px;
}

.hero-features {
    line-height: 1.9;
    margin-bottom: 30px;
}

.hero-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Feature Cards */
.feature-card {
    border-radius: 12px;
    min-height: 120px;
}

.feature-icon {
    height: 30px;
    width: 30px;
    margin: 0 auto 8px auto;
}

.feature-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.feature-description {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

/* Documents Section */
.documents-hero-card {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.documents-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 192, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
    z-index: 1;
}

.documents-hero-card .card-body {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.documents-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    margin-bottom: 0;
}

.document-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.document-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.document-info-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.document-info-card h5 i {
    margin-right: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.document-list {
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.document-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: keep-all;
    white-space: normal;
    display: block;
}

.document-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
    top: 2px;
}

/* How It Works Section */
.how-it-works-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.how-it-works-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.how-it-works-title {
    font-weight: 700;
}

.how-it-works-steps {
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
}

.how-it-works-steps li {
    margin-bottom: 8px;
    position: relative;
    color: #6c757d;
    font-size: 0.95rem;
}

.how-it-works-steps li::marker {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-title {
    font-weight: 700;
}

.faq-card {
    border-radius: 12px;
}

/* Modal Styles */
.modal-icon {
    font-size: 57px;
    color: #4a5fd6;
}

.modal-title {
    margin-top: 24px;
    color: #4a4646;
}

/* Back to Top Button */
#back-to-top {
    display: none;
}


/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Mobile First - Base styles are mobile */

/* Extra small devices (360px and down) */
@media (max-width: 360px) {
    .package-price {
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 0.8rem;
    }
    
    .feature-description {
        font-size: 0.7rem;
    }
    
    .feature-icon {
        height: 25px;
        width: 25px;
    }
    
    .feature-card {
        min-height: 100px;
    }
    
    .hero-card .card-body {
        padding: 15px 10px;
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .hero-features {
        margin-bottom: 18px;
    }
    
    .hero-features li {
        font-size: 0.85rem;
        margin-bottom: 5px;
        padding-left: 18px;
    }
    
    .hero-image,
    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .how-it-works-image,
    .how-it-works-image img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    /* Documents Section Mobile */
    .documents-hero-card .card-body {
        padding: 20px 15px;
    }
    
    .documents-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .video-container {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .document-info-card {
        padding: 18px 15px;
        margin-bottom: 15px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.1);
    }
    
    .document-info-card h5 {
        font-size: 1rem;
        margin-bottom: 12px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .document-info-card h5 i {
        font-size: 1rem;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .document-list {
        margin-top: 8px;
    }
    
    .document-list li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-left: 18px;
        line-height: 1.4;
        word-break: keep-all;
        white-space: normal;
        display: block;
        width: 100%;
    }
    
    .document-list li::before {
        font-size: 1rem;
        top: 2px;
    }
}

/* Small devices (480px and down) */
@media (max-width: 480px) {
    .package-price {
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 0.85rem;
    }
    
    /* Document cards for very small screens */
    .document-info-card {
        padding: 15px 12px;
        margin-bottom: 12px;
    }
    
    .document-info-card h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .document-info-card h5 i {
        font-size: 0.95rem;
        margin-right: 5px;
    }
    
    .document-list li {
        font-size: 0.8rem;
        margin-bottom: 5px;
        padding-left: 16px;
        line-height: 1.3;
    }
    
    .document-list li::before {
        font-size: 0.9rem;
        top: 1px;
    }
    
    .feature-description {
        font-size: 0.72rem;
    }
    
    .feature-icon {
        height: 28px;
        width: 28px;
    }
    
    .feature-card {
        min-height: 110px;
    }
    
    .hero-card .card-body {
        padding: 20px 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero-features {
        margin-bottom: 20px;
    }
    
    .hero-features li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .hero-image,
    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .how-it-works-image,
    .how-it-works-image img {
        max-width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    /* Documents Section Small Mobile */
    .documents-hero-card .card-body {
        padding: 25px 20px;
    }
    
    .documents-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .video-container {
        margin-bottom: 25px;
        border-radius: 10px;
    }
    
    .document-info-card {
        padding: 22px 18px;
        margin-bottom: 18px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 15px rgba(0,0,0,.12);
    }
    
    .document-info-card h5 {
        font-size: 1.15rem;
        margin-bottom: 18px;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .document-info-card h5 i {
        font-size: 1.15rem;
        margin-right: 9px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .document-list {
        margin-top: 12px;
    }
    
    .document-list li {
        font-size: 0.92rem;
        margin-bottom: 9px;
        padding-left: 22px;
        line-height: 1.5;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .document-list li::before {
        font-size: 1.15rem;
        top: 3px;
    }
}

/* Medium devices (768px and down) */
@media (max-width: 768px) {
    .section-white,
    .section-light {
        padding: 30px 0;
    }
    
    .package-card,
    .package-card-popular {
        margin-bottom: 20px;
    }
    
    .feature-card {
        margin-bottom: 15px;
    }
    
    .hero-card .card-body {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-features {
        margin-bottom: 25px;
    }
    
    .hero-image,
    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
        margin-bottom: 20px;
    }
    
    .how-it-works-image,
    .how-it-works-image img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .video-container {
        margin-bottom: 20px;
    }
    
    /* Documents Section Tablet */
    .documents-hero-card .card-body {
        padding: 35px 30px;
    }
    
    .documents-title {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }
    
    .video-container {
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .document-info-card {
        padding: 3px 2px;
        margin-bottom: 22px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 6px 18px rgba(0,0,0,.1);
		max-width: 100%;
    }
    
    .document-info-card h5 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        line-height: 1.4;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .document-info-card h5 i {
        font-size: 1.2rem;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .document-list {
        margin-top: 15px;
    }
    
    .document-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-left: 24px;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .document-list li::before {
        font-size: 1.2rem;
        top: 2px;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .section-white,
    .section-light {
        padding: 50px 0;
    }
    
    .feature-card {
        min-height: 120px;
    }
    
    .hero-image,
    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height: 500px;
    }
    
    .how-it-works-image,
    .how-it-works-image img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .section-white,
    .section-light {
        padding: 60px 0;
    }
    
    .hero-image,
    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height: 600px;
    }
    
    .how-it-works-image,
    .how-it-works-image img {
        max-width: 100%;
        height: auto;
        max-height: 500px;
    }
}

/* ===============================================
   IMAGE OPTIMIZATION
   =============================================== */

/* General image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive images */
.hero-image,
.how-it-works-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Image containers */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ===============================================
   BUTTON STYLES
   =============================================== */

/* Primary Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #1a36c0, #00a0e8);
    border: none;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(45deg, #0d2a8a, #007bb8);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 54, 192, 0.3);
}

/* Outline Button Styles */
.btn-outline-primary {
    border: 2px solid #1a36c0;
    color: #1a36c0 !important;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: linear-gradient(45deg, #1a36c0, #00a0e8);
    border-color: #1a36c0;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 54, 192, 0.3);
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-primary { color: #007bff; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.h-100 { height: 100%; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    .section-white,
    .section-light {
        padding: 20px 0;
    }
    
    .package-card,
    .package-card-popular,
    .feature-card,
    .document-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero-image img {
        box-shadow: none;
    }
    
    .video-container {
        box-shadow: none;
    }
}

/* Final overrides to ensure proper text flow in document cards on all devices */
.document-info-card,
.document-info-card * {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important; /* prefer breaking at word boundaries, fallback anywhere */
    hyphens: manual !important;
}

.document-info-card h5 {
    white-space: normal !important; /* allow wrapping for longer titles on small screens */
    text-overflow: clip !important;
}

.document-list li {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
