/* |--------------------------------------------------------------------------
| Global Variables
|-------------------------------------------------------------------------- */
:root {
 /* --- PURPLE COLOR SCHEME --- */
 --primary-color-base: #9333ea; /* Main Purple for buttons/accents */
 --primary-color-light: #f3e8ff; /* Very light lavender background for hero/sections */
 --primary-color-dark: #7e22ce; /* Darker purple for hover states */

 --secondary-color-dark: #343A40; /* Dark text/headers */
 --secondary-color-text: #495057; /* General body text */
 --secondary-color-light: #F8F9FA;
 --secondary-color-border: #E0E0E0;
 --secondary-color-grey: #9E9E9E;

 --font-family-primary: "Figtree", sans-serif;
 --border-radius-card: 18px;
 --border-radius-button: 10px;
 --border-radius-pill: 50px;
 --shadow-light: 0 6px 20px rgba(0, 0, 0, 0.06);
 --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);

 /* Header height to ensure content isn't hidden by the sticky bar */
 --header-height: 80px;
}

/* |--------------------------------------------------------------------------
| Base Styles & Critical Fixes (Re-added for safety)
|-------------------------------------------------------------------------- */
* {
 font-family: var(--font-family-primary);
 font-optical-sizing: auto;
 padding: 0;
 margin: 0;
 box-sizing: border-box;
}

/* CRITICAL FIX: Ensures all images/media don't overflow their containers */
img,
video,
iframe {
 max-width: 100%;
 height: auto;
}
.logo-img, .logo-img-mini {
 max-width: 100%;
 height: auto;
}
table, pre {
 max-width: 100%;
 overflow-x: auto;
}

body {
 background-color: #FFFFFF;
 color: var(--secondary-color-text);
 line-height: 1.6;
}

/* |--------------------------------------------------------------------------
| Header & Navigation Styles
|-------------------------------------------------------------------------- */

/* Adds necessary top padding to the body content so it doesn't hide behind the sticky header */
body {
 padding-top: var(--header-height);
}

.main-header {
 background-color: #FFFFFF;
 border-bottom: 1px solid var(--secondary-color-border);
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Soft shadow for sticky effect */
 height: var(--header-height); /* Fixed height for clean sticky look */
 z-index: 1030; /* Ensure it stays above other content */
 padding: 0;
}

/* Removed logo-group h2 styling, now using image tag */

.nav-link {
 color: var(--secondary-color-text) !important;
 font-weight: 500;
 padding: 0.5rem 1rem; /* Adjust padding for better look */
 border-radius: var(--border-radius-button);
 transition: background-color 0.2s;
}

.nav-link:hover {
 color: var(--primary-color-base) !important;
}

/* Active navigation link */
.nav-link.active {
 color: var(--primary-color-dark) !important;
 font-weight: 600;
}

/* Hamburger icon color */
.navbar-toggler-icon {
 filter: brightness(0.5);
}

/* |--------------------------------------------------------------------------
| Utility Buttons (Based on new colors)
|-------------------------------------------------------------------------- */
.btn-primary-filled {
 background-color: var(--primary-color-base);
 color: #fff;
 border: 2px solid var(--primary-color-base);
 padding: 10px 25px;
 border-radius: var(--border-radius-button);
 font-weight: 600;
 transition: all 0.3s ease;
 box-shadow: var(--shadow-light);
}

.btn-primary-filled:hover {
 background-color: var(--primary-color-dark);
 border-color: var(--primary-color-dark);
 box-shadow: var(--shadow-hover);
 color: #fff;
}

.btn-outline {
 background-color: transparent;
 color: var(--primary-color-base);
 border: 2px solid var(--primary-color-base);
 padding: 10px 25px;
 border-radius: var(--border-radius-button);
 font-weight: 600;
 transition: all 0.3s ease;
}

.btn-outline:hover {
 background-color: var(--primary-color-light);
 color: var(--primary-color-dark);
 border-color: var(--primary-color-dark);
}

/* |--------------------------------------------------------------------------
| Other Section Styles (Updated to use new variables)
|-------------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
 background-color: var(--primary-color-light);
    /* FIX: Remove top padding (0) to ensure the section starts flush 
       right after the fixed header, utilizing the body's padding-top for clearance.
    */
 padding: 0 0 4rem 0; 
}

/* New: Add box shadow to the Hero Image */
.hero-section img {
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Headers */
.primary-heading {
 color: var(--secondary-color-dark);
 font-size: 3rem;
 font-weight: 800;
 line-height: 1.1;
}

/* Feature Cards */
.card {
 border: none;
 border-radius: var(--border-radius-card);
 box-shadow: var(--shadow-light);
 padding: 2rem;
 transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-hover);
}

/* Testimonial Section */
.testimonial-section {
 background-color: #FFFFFF;
 padding: 4rem 0;
}

.testimonial-card {
 background-color: var(--secondary-color-light);
 border-radius: var(--border-radius-card);
 padding: 2rem;
 box-shadow: var(--shadow-light);
}

/* Feature Icons */
.feature-icon {
 font-size: 2.5rem;
 color: var(--primary-color-base);
 margin-bottom: 1rem;
}

/* How It Works Step Number background */
.step-number {
    /* Use the primary color for the step circles */
    background-color: var(--primary-color-base) !important;
    width: 40px;
    height: 40px;
}


/* Footer (Updated Color Scheme and Text Visibility) */
.footer-section {
 background-color: #1D2A35; /* New Dark Charcoal/Blue Footer Background */
 color: #FFFFFF;
 padding: 3rem 0 1rem;
}

.footer-link {
 color: #C0C4C8; /* Brighter link color for better visibility */
 text-decoration: none;
 transition: color 0.2s;
}

.footer-link:hover {
 color: var(--primary-color-base);
}



/* --- Variables for Easy Purple Theming --- */
:root {
    --purple-primary: #6A1B9A; /* Deep Purple */
    --purple-light: #9C27B0; /* Brighter Purple for hover */
    --lavender-bg: #F3E5F5; /* Very light purple background */
    --text-dark: #212121;
    --text-light: #FFFFFF;
}

/* --- Global Container & Section --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for small screens */
}

.testimonials-section {
    padding: 60px 0;
    background-color: var(--lavender-bg);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--purple-primary);
    margin-bottom: 40px;
    font-weight: 700;
}

/* --- Testimonial Grid Layout (The key for responsiveness) --- */
.testimonial-grid {
    /* Use gap for spacing between cards */
    gap: 30px; 
    
    /* Default layout for large screens (3 columns) */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
}

/* --- Media Queries for Mobile Optimization --- */

/* Tablet & Smaller Desktop Screens (Max-width 992px) */
@media (max-width: 992px) {
    .testimonial-grid {
        /* Change to 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile Screens (Max-width 600px) */
@media (max-width: 600px) {
    .testimonial-grid {
        /* Stack cards vertically (1 column) on small screens */
        grid-template-columns: 1fr; 
    }
    
    .section-title {
        /* Reduce font size on tiny screens */
        font-size: 2rem; 
        margin-bottom: 30px;
    }
}

/* --- Individual Testimonial Card --- */
.testimonial-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--purple-primary);
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-style: italic;
}

/* --- Author Information --- */
.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--purple-primary);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--purple-primary);
    font-size: 1rem;
}

.author-title {
    font-size: 0.9rem;
    color: #757575;
}








/* --- Variables & Base Styles --- */
:root {
    --primary-purple: #6B46C1; /* A rich, main purple */
    --hover-purple: #553C9A;   /* Darker purple for hover effects */
    --text-color: #333;
    --background-light: #f5f5f9; /* A very light, subtle background color for the section */
    --card-bg: #ffffff;
    --border-radius-large: 1.5rem; /* 24px */
}

/* * NOTE: The global 'body' styling has been removed to avoid conflicts 
 * with your main index.php stylesheet. 
 */

/* --- Section Layout --- */
.platforms-section {
    padding: 4rem 1rem;
    text-align: center;
    /* Applying the light background only to this section */
    background-color: var(--background-light); 
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Titles and Headings --- */
.main-title {
    font-size: 2.5rem; /* Large title */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-purple);
}

.sub-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Platform Grid Layout (Responsive) --- */
.platforms-grid {
    display: grid;
    /* Default: 1 column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; /* Spacing between cards */
}

/* --- Individual Platform Card --- */
.platform-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle initial shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(107, 70, 193, 0.1); /* Light purple border */
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.2); /* Enhanced shadow on hover */
}

/* --- Icons --- */
.platform-icon {
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
    /* General icon styling (circle background) */
    background-color: rgba(107, 70, 193, 0.1); /* Very light purple background */
    color: var(--primary-purple); /* Icon color */
}

/* Optional: You can change icon colors to match the platform if desired */
/* .platform-icon.facebook { color: #1877F2; }
.platform-icon.whatsapp { color: #25D366; } */

.platform-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.platform-number {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* --- Button Styling --- */
.buy-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-purple);
    color: var(--card-bg); /* White text */
    text-decoration: none;
    border-radius: 0.75rem; /* Medium rounded corners */
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(107, 70, 193, 0.3); /* Button shadow */
    border: none;
}

.buy-button:hover {
    background-color: var(--hover-purple);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(107, 70, 193, 0.4);
}

.buy-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(107, 70, 193, 0.3);
}

/* --- Media Queries for Desktop Layout --- */
@media (min-width: 768px) {
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on tablets/desktops */
    }

    .main-title {
        font-size: 3rem;
    }

    .platforms-section {
        padding: 6rem 2rem;
    }
}



/* Responsive adjustments */
@media (max-width: 991.98px) {
 /* Adjust spacing for mobile navigation */
 .navbar-nav {
 margin-top: 1rem;
 }

 .navbar-collapse {
 background-color: #FFFFFF;
 padding: 1rem;
 border-radius: var(--border-radius-card);
 box-shadow: var(--shadow-light);
 margin-top: 0.5rem;
 }

 .navbar-nav .nav-link {
 padding: 0.5rem 0;
 }
}