/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

.app-container {
    max-width: 600px; 
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* --- Header Section --- */
.top-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.header-icons {
    display: flex;
    gap: 18px;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.header-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #002b5e; /* Premium dark blue */
    text-align: left !important;
    flex-grow: 1;
    letter-spacing: 1px;
}

/* --- Hero Slider Container --- */
.hero-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 220px; 
    background-color: #e0e0e0;
}

.slider-track {
    display: flex;
    width: 800%; /* 8 images */
    height: 100%;
    animation: autoSlide 32s infinite; 
}

/* --- Slide & Overlay Styling --- */
.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adds a subtle dark tint over the images so the white text is always readable */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* --- Slide Content & Buttons --- */
.slide-content {
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    z-index: 10; /* Keeps text above the dark tint */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.slide-content h2 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.slide-content p {
    font-size: 0.95rem;
    margin: 0 0 15px 0;
}

.slide-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0ba360; /* Matches the ticker green */
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px; /* Modern pill shape */
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-shadow: none; /* Removes text shadow from the button text */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slide-btn:hover {
    background-color: #067a46;
    transform: translateY(-2px);
}

/* --- Slider Indicators (Dots) --- */
.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    animation-duration: 32s; 
    animation-iteration-count: infinite;
}

.dot:nth-child(1) { animation-name: dotActive1; }
.dot:nth-child(2) { animation-name: dotActive2; }
.dot:nth-child(3) { animation-name: dotActive3; }
.dot:nth-child(4) { animation-name: dotActive4; }
.dot:nth-child(5) { animation-name: dotActive5; }
.dot:nth-child(6) { animation-name: dotActive6; }
.dot:nth-child(7) { animation-name: dotActive7; }
.dot:nth-child(8) { animation-name: dotActive8; }

/* --- Keyframes for Slider Track --- */
@keyframes autoSlide {
    0%, 9%       { transform: translateX(0); }
    12.5%, 21.5% { transform: translateX(-12.5%); }
    25%, 34%     { transform: translateX(-25%); }
    37.5%, 46.5% { transform: translateX(-37.5%); }
    50%, 59%     { transform: translateX(-50%); }
    62.5%, 71.5% { transform: translateX(-62.5%); }
    75%, 84%     { transform: translateX(-75%); }
    87.5%, 96.5% { transform: translateX(-87.5%); }
    100%         { transform: translateX(0); }
}

/* --- Keyframes for Individual Dots --- */
@keyframes dotActive1 {
    0%, 9%, 100% { background-color: #0ba360; transform: scale(1.2); }
    12.5%, 96.5% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
}
@keyframes dotActive2 {
    0%, 9%, 25%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    12.5%, 21.5%      { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive3 {
    0%, 21.5%, 37.5%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    25%, 34%               { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive4 {
    0%, 34%, 50%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    37.5%, 46.5%       { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive5 {
    0%, 46.5%, 62.5%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    50%, 59%               { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive6 {
    0%, 59%, 75%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    62.5%, 71.5%       { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive7 {
    0%, 71.5%, 87.5%, 100% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    75%, 84%               { background-color: #0ba360; transform: scale(1.2); }
}
@keyframes dotActive8 {
    0%, 84%, 96.5% { background-color: rgba(255, 255, 255, 0.5); transform: scale(1); }
    87.5%, 96.5%   { background-color: #0ba360; transform: scale(1.2); }
}

/* --- Welcome Message / News Ticker --- */
.news-ticker-container {
    background-color: #0ba360; 
    color: #ffffff; 
    display: flex;
    align-items: stretch; 
    overflow: hidden;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px; 
    margin: 15px 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.ticker-icon-box {
    background-color: #067a46; 
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; 
}

.ticker-icon-box i {
    color: #ffffff;
    font-size: 1.1rem;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0 15px; 
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite; 
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Welcome Section --- */
.welcome-section {
    padding: 20px;
    text-align: center;
}

.welcome-section h2 {
    color: #002b5e;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.welcome-section p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Quick Links (2-Column Grid) --- */
.quick-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px 20px 20px;
}

.quick-link-card {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Specific button colors */
.quick-link-card:first-child { background: #002b5e; color: #ffffff; }
.quick-link-card:last-child { background: #0ba360; color: #ffffff; }

/* --- About Section --- */
.about-section {
    padding: 25px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
}

.about-section h3 {
    color: #002b5e;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    padding-left: 10px;
	text-align: center;
}

.about-section p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- About Section Button --- */
.about-btn {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding: 8px 18px;
    background-color: #002b5e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.about-btn:hover {
    background-color: #004085;
}


/* --- Services Slider Styling --- */
.services-slider-container {
    padding: 30px 20px;
    background: #ffffff;
}

.services-heading {
    color: #002b5e;
    text-align: center;
    margin: 10px 0; /* Reduced top and bottom margins */
    font-size: 1.4rem;
}

.services-slider {
    width: 100%;
    overflow: hidden;
}

.services-track {
    display: flex;
    width: 1200%; /* 12 slides */
    animation: servicesScroll 30s linear infinite;
}

.service-slide{
    flex: 0 0 calc(100% / 12);
    width: calc(100% / 12);
	min-height: 250px;
    flex-shrink: 0;
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	box-sizing: border-box
}

.service-slide i {
    font-size: 2.5rem;
    color: #0ba360;
    margin-bottom: 10px;
}

.service-slide h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #002b5e;
}

.service-slide p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
	overflow-y: auto;
}

/* Updated Keyframes for 18s duration */
@keyframes servicesScroll {
    0%, 6.6%     { transform: translateX(0); }
    8.3%, 15%    { transform: translateX(-8.33%); }
    16.6%, 23.3% { transform: translateX(-16.66%); }
    25%, 31.6%   { transform: translateX(-25%); }
    33.3%, 40%   { transform: translateX(-33.33%); }
    41.6%, 48.3% { transform: translateX(-41.66%); }
    50%, 56.6%   { transform: translateX(-50%); }
    58.3%, 65%   { transform: translateX(-58.33%); }
    66.6%, 73.3% { transform: translateX(-66.66%); }
    75%, 81.6%   { transform: translateX(-75%); }
    83.3%, 90%   { transform: translateX(-83.33%); }
    91.6%, 98.3% { transform: translateX(-91.66%); }
    100%         { transform: translateX(0); }
}

/* --- CTA Section Styles --- */
.cta {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;    /* Center items horizontally */
    text-align: center;     /* Ensure text is centered */
    padding: 20px;
    background-color: #ffffff;
}

.cta h2 {
    margin-bottom: 15px;
    color: #002b5e;
}

.video-container {
    width: 100%;
    max-width: 600px; /* Keeps video proportional on larger screens */
    margin-bottom: 15px;
}

.cta p {
    margin: 15px 0 20px 0;
    line-height: 1.6;
    color: #444;
}

/* Button styling with pill-shaped rounded corners */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #002b5e; /* Adjust this color to match your theme */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;      /* Creates the fully rounded pill shape */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #004085; /* Slight hover effect */
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.reviews-header h2 {
    color: #002b5e;
    margin-bottom: 5px;
}

/* Slider Container */
.reviews-slider {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden; /* Important: keeps items in line */
}

.reviews-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Review Card Styling */
.review-card {
    flex: 0 0 100%; /* Each card takes full width of slider */
    background-color: #3498db; /* The blue from your screenshot */
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.review-stars {
    color: #f1c40f; /* Gold stars */
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.author-avatar {
    background: rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Add Review Button */
.add-review-btn {
    background-color: #f39c12; /* Amber/Orange */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

/* Review Form Styling */
.review-form-wrapper {
    display: none; /* Hidden by default */
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.review-form-wrapper.open {
    display: block;
}

/* --- Targeted Image Resizing --- */
.testimonies-image img {
    width: 100%;       /* Makes the image stretch to fill the width of its container */
    max-width: 600px;  /* Optional: limits the max size so it doesn't get blurry on large screens */
    height: auto;      /* Ensures the height adjusts automatically to keep the image proportional */
    display: block;
    margin: 0 auto;    /* Centers the image if it is smaller than the container */
    border-radius: 8px; /* Optional: adds a slight curve to the corners */
}


.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.star-rating-input { direction: rtl; display: inline-block; cursor: pointer; }
.star-rating-input input { display: none; }
.star-rating-input label { color: #ccc; font-size: 1.5rem; transition: 0.3s; }
.star-rating-input input:checked ~ label, 
.star-rating-input label:hover, 
.star-rating-input label:hover ~ label { color: #f1c40f; }


        /* Container styling */
        .campaign-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); 
            gap: 15px;
            padding: 0 0 15px 0;
        }

      /* Base card styling */
        .campaign-card {
            display: flex;
            justify-content: space-between; 
            align-items: center; 
            padding: 20px;
            border-radius: 12px;
            text-decoration: none;
            color: #ffffff; 
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

       /* Hover effect */
        .campaign-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

       /* Text styling */
        .card-title {
            font-size: 14px;
            font-weight: bold;
            line-height: 1.3;
        }

       /* Icon styling */
        .card-icon {
            font-size: 32px; 
            opacity: 0.8; 
			color: #fff;
        }

        /* --- Gradient Colors per Card --- */
        .card-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .card-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
        .card-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
        .card-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .card-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }
        .card-teal { background: linear-gradient(135deg, #17ead9 0%, #6078ea 100%); }

/* ============================================================
   ABOUT & FAQ SECTIONS (TAG-Style)
============================================================= */

/* The main container holding both boxes */
.info-section-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* The thin light border */
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto; /* Centered with vertical spacing */
    max-width: 600px; /* Mobile profile width */
    box-sizing: border-box;
}

/* Base style for both info boxes */
.info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 15px 0; /* Vertical spacing inside each box */
    transition: background-color 0.2s;
}

/* Sub-headings (About ATWOPAT, FAQ) */
.info-box h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

/* Description text
.info-box p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8; /* The faded light gray from the TAG example 
}
 */
.info-box p {
    font-size: 13px;       /* Keep it small and readable */
    color: #64748b;        /* Use a muted color for secondary text */
    margin: 4px 0 0 0;     /* Tighten spacing */
    line-height: 1.4;      /* Good for readability */
}

/* Image container and formatting (matches reference size/rounding) */
.info-box-image-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.info-box-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Special styling for the visual split/divider */
.info-box-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Slight hover effect for the entire box */
.info-box:hover {
    background-color: #f8fafc;
}

   /* ================= TERMS POPUP ================= */

.terms-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:20px;
}
.terms-box{
    background:#fff;
    max-width:500px;
    width:100%;
    padding:35px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    animation:popupFade 0.4s ease;
}

.terms-box h2{
    color:#0d47a1;
    margin-bottom:15px;
}
.terms-box p{
    color:#444;
    margin-bottom:18px;
    line-height:1.7;
}

.terms-buttons{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:25px;
}
.read-btn,
.continue-btn{
    flex:1;
    padding:12px;
    border:none;
    border-radius:6px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
    transition:0.3s;
}

.read-btn{
    background:#e3f2fd;
    color:#0d47a1;
}

.read-btn:hover{
    background:#bbdefb;
}
.continue-btn{
    background:#0d47a1;
    color:#fff;
}

.continue-btn:hover{
    background:#08306b;
}

@keyframes popupFade{
    from{
        transform:scale(0.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* ================= PRELOADER ================= */

#preloader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#ffffff;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
  transition:0.5s ease;
}

/* wrapper */

.loader-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* spinning ring */

.spinner-ring{
  width:110px;
  height:110px;
  border:2px solid #e6e6e6;
  border-top:5px solid #0a7cff;
  border-radius:50%;
  animation:spin 1s linear infinite;
  position:absolute;
}

/* logo in center */

.loader-logo{
  width:90px;
  height:90px;
  z-index:2;
  animation:pulse 1.5s infinite;
}

/* animation */

@keyframes spin{
  0%{
    transform:rotate(0deg);
  }

  100%{
    transform:rotate(360deg);
  }
}

@keyframes pulse{

  0%{
    transform:scale(1);
  }

  50%{
    transform:scale(1.08);
  }

  100%{
    transform:scale(1);
  }

}

/* fade out effect */

.preloader-hide{
  opacity:0;
  visibility:hidden;
  transition:0.5s ease;
}