/* Header */
header {
    background-color: #344b5b; /* User Requested Color */
    padding: 55px 0;
    position: relative; /* Changed from sticky as requested */
    z-index: 1000;
    border-bottom: 4px solid #e67e22; /* Burnt Orange */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    background: #3498db;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right !important;
}

.logo-details h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    text-align: right !important;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-top: 12px;
    opacity: 0.85;
    text-align: right !important;
}

@media (max-width: 992px) {
    header { padding: 25px 0; }
    .header-content { flex-direction: column; gap: 20px; text-align: center; }
    .logo { justify-content: center; }
    .logo-details { align-items: center; text-align: center !important; }
    .logo-details h1 { font-size: 1.8rem; text-align: center !important; }
    .logo-subtitle { text-align: center !important; }
    .nav-menu { gap: 15px; justify-content: center; width: 100%; }
    .nav-link, .btn-header { font-size: 0.95rem; padding: 8px 14px; }
}

@media (max-width: 768px) {
    header { 
        padding: 30px 0 20px; 
        border-bottom: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .header-content { 
        flex-direction: column; 
        gap: 25px; 
    }
    .logo { 
        flex-direction: row;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }
    .logo-icon { 
        width: 60px; 
        height: 60px; 
        font-size: 1.6rem; 
    }
    .logo-details { 
        align-items: center;
        text-align: center !important;
    }
    .logo-details h1 { 
        font-size: 1.8rem; 
        margin-bottom: 2px;
    }
    .logo-subtitle { 
        display: block;
        font-size: 0.8rem;
        margin-top: 2px;
        opacity: 0.9;
        text-align: center !important;
    }
    .nav-menu { 
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        width: 100%;
        margin-bottom: 5px;
    }
    .nav-link { 
        font-size: 1rem; 
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border: none !important;
    }
    .nav-link i {
        font-size: 1.1rem;
    }
    .btn-header { 
        font-size: 1.1rem; 
        padding: 12px 20px; 
        width: 100%; 
        text-align: center; 
        border-radius: 10px;
        background-color: #4a90e2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 25px 15px 15px;
    }
    .nav-menu {
        gap: 15px;
    }
    .nav-link {
        font-size: 0.9rem;
    }
}
.status-dot {
    color: #2ecc71; /* Green dot */
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e1b12c;
}

.nav-link.logout-link:hover {
    color: #e74c3c;
}

.nav-link .fa-star {
    color: #f1c40f; /* Yellow */
}

.nav-link .fa-tags {
    color: #3498db; /* Blue */
}

.nav-link .fa-right-to-bracket {
    color: #2ecc71;
}

.btn-header {
    padding: 10px 25px;
    font-size: 0.95rem;
    background-color: #4a90e2;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}

.btn-header:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

/* Announcement Ticker */
.announcement-bar {
    background-color: #fffbeb; /* User Requested Color */
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    height: 50px; /* Taller bar */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.alert-badge {
    background-color: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 15px; /* Space between badge and text */
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* Masking gradient to fade out text at edges if needed, but clean cut is fine */
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    /* Initial Position: Far Left (off-screen) */
    left: 0; 
    animation-timing-function: linear;
    animation-name: ticker-ltr;
    animation-iteration-count: infinite;
    width: 100%; /* Ensure it has width context */
    will-change: transform;
}

.ticker-item {
    display: inline-block;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    direction: rtl; /* Ensure text is RTL */
}

/* 
 * Ticker Animation: Left to Right (LTR)
 * Best for Arabic text reading flow
 */
@keyframes ticker-ltr {
    0% { transform: translate3d(-100%, 0, 0); } /* Starts completely off to the left */
    100% { transform: translate3d(100%, 0, 0); } /* Ends completely off to the right */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 30px; /* Reduced bottom padding */
    background-color: #fff;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInHero 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark-navy);
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

/* New distinctive span styles */
.hero h1 span.text-orange {
    color: #e67e22;
}

.hero h1 span.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero h1 span.underline {
    border-bottom: 5px solid rgba(74, 144, 226, 0.3);
    line-height: 1;
}

.hero p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 45px auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-image-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 8 / 3;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 16px 24px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { gap: 10px; margin-bottom: 30px; }
    .hero-image-container { border-radius: 10px; }
}

/* Features Section */
.features {
    padding: 20px 20px 40px; /* Reduced bottom padding to minimize gap */
    background-color: #fff;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #d35400; /* Vibrant Burnt Orange */
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: #f1c40f; /* Yellow accent line */
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.3rem;
    color: #555;
    margin-top: 15px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
    text-align: center;
    display: flex; /* Flexbox for better alignment control */
    flex-direction: column; /* Stack content vertically */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1); /* Subtle scale instead of color change */
}

.feature-icon {
    width: 70px; /* Slightly larger as in image */
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    align-self: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-cyan { background: #ecfeff; color: #0891b2; }
.icon-mint { background: #f0fdf4; color: #15803d; }

.feature-card h3 {
    font-size: 1.4rem; /* Larger title */
    margin-bottom: 15px;
    color: #1e293b; /* Darker navy/slate as in image */
    font-weight: 800;
}

.feature-card p {
    color: #64748b; /* Slate-500 for professional look */
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Pricing Section */
.pricing {
    padding: 20px 20px 80px; /* Reduced top padding to minimize gap */
    background-color: #fff; /* Unified background color (White) */
    text-align: center;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced gap to fit 4 cards */
    margin-top: 40px;
}

.pricing-card {
    background: white;
    padding: 30px 15px; /* Reduced padding */
    border-radius: 20px;
    flex: 1; /* Allow cards to shrink/grow */
    min-width: 200px; /* Reduced min-width to ensure 4 in a row */
    max-width: 280px; /* Maintain design consistency */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    border: 1px solid #e0e0e0; /* Grey border added */
    transition: all 0.3s;
    overflow: hidden; /* Needed for ribbon */
    display: flex; /* Flex layout for internal alignment */
    flex-direction: column; /* Stack content vertically */
}

.pricing-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-width: 2px;
}

/* Pricing Card Colors */
.card-trial {
    border-color: #95a5a6; /* Grey/Silver for Trial */
}

.card-monthly {
    border-color: #27ae60; /* Green for Monthly */
}

.card-semi {
    border-color: #2980b9; /* Blue for Semi-Annual */
}

.card-annual {
    border-color: #8b5cf6; /* Purple to match button */
}

/* CTA Box */
.cta-box {
    margin-top: 30px; /* Reduced from 60px to bring it closer */
    padding: 50px 30px;
    background: linear-gradient(to bottom, #f8fbff, #f0f6fc); /* Even Lighter Blue Gradient */
    border: 2px solid #2980b9; /* Blue Border */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cta-box h2 {
    color: #2980b9; /* Blue to match border */
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-box p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-cta-large {
    display: inline-block;
    background-color: #0056b3; /* Strong Blue */
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0,86,179,0.3);
}

.btn-cta-large:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.tag-featured {
    position: absolute;
    top: 25px;
    left: -35px; /* Adjust for corner position */
    transform: rotate(-45deg); /* Diagonal rotation */
    background: var(--primary-blue);
    color: white;
    padding: 8px 40px; /* Wide padding for ribbon shape */
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: center;
    width: 150px; /* Ensure width is enough to span corner */
}

/* Match ribbon color to plan color */
.pricing-card.card-monthly .tag-featured { background: var(--accent-green); }
.pricing-card.card-semi .tag-featured { background: var(--primary-blue); }
.pricing-card.card-annual .tag-featured { background: #8b5cf6; }
.pricing-card.card-trial .tag-featured { background: var(--primary-blue); }

.plan-title {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}

.plan-features {
    list-style: none;
    margin: 20px 0 auto 0; /* Push button to bottom */
    text-align: right;
    flex-grow: 1; /* Ensure it takes available space */
}

.plan-features li {
    margin-bottom: 12px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✔';
    color: var(--primary-blue);
    margin-left: 10px;
    font-weight: bold;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.btn-blue { background-color: var(--primary-blue); color: white; }
.btn-green { background-color: var(--accent-green); color: white; }
.btn-purple { background-color: #8b5cf6; color: white; }
.btn-outline-card { background: transparent; border: 1px solid var(--primary-blue); color: var(--primary-blue); }

/* Bottom CTA / Light Section */
.bottom-cta {
    background-color: #f0f9ff; /* Very light sky blue */
    color: #333;
    padding: 30px 20px; /* Further reduced padding */
    overflow: hidden;
}

.bottom-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px; /* Further reduced max-width */
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 120px; /* Significantly increased gap */
}

.cta-text {
    flex: 1;
    min-width: 300px;
    /* padding-left removed in favor of gap */
}

.cta-text h2 {
    font-size: 1.5rem; /* Further reduced font size */
    margin-bottom: 15px;
    color: var(--primary-blue); /* Blue title */
}

.feature-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px; /* Further reduced margin */
}

.feature-row-icon {
    background: rgba(52, 152, 219, 0.1); /* Light blue background for icons */
    width: 35px; /* Further reduced size */
    height: 35px; /* Further reduced size */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 1rem; /* Further reduced icon size */
    color: var(--primary-blue); /* Blue icon color */
}

.cta-image {
    flex: 0 0 350px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 10px 10px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* How it Works */
.how-it-works {
    padding: 60px 20px;
    background-color: #f8fbff;
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    position: relative;
    border-top: 4px solid var(--primary-blue);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 20px 0 15px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--dark-navy);
}

.step-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

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

.testimonial-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    text-align: right;
    position: relative;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.quote-icon {
    font-size: 2rem;
    color: #e0e0e0;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-navy);
}

.user-role {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* FAQ */
.faq {
    padding: 60px 20px 80px;
    background-color: #f4f6f8;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-right: 4px solid var(--primary-blue);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-navy);
}

.faq-item h3 i {
    color: var(--primary-blue);
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    padding-right: 28px; /* Align with text start */
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
}
