/* ============================================
   Internet Recharge Guide - Qatar
   Digital Telecom Knowledge Center
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    --primary-white: #ffffff;
    --accent-turquoise: #00b4d8;
    --accent-turquoise-dark: #0096b4;
    --highlight-deep-blue: #1d3557;
    --highlight-blue-medium: #457b9d;
    --card-light-grey: #f8f9fa;
    --card-border: #e9ecef;
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6c757d;
    --success-green: #2a9d8f;
    --warning-yellow: #e9c46a;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--highlight-deep-blue);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent-turquoise);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-turquoise-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-turquoise), var(--highlight-deep-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--highlight-deep-blue);
}

.logo-text span {
    color: var(--accent-turquoise);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li a {
    padding: 10px 16px;
    color: var(--text-medium);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--card-light-grey);
    color: var(--accent-turquoise);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--highlight-deep-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--highlight-deep-blue) 0%, var(--highlight-blue-medium) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-visual {
    margin-top: 40px;
}

.hero-visual svg {
    max-width: 100%;
    height: auto;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--highlight-deep-blue) 0%, var(--highlight-blue-medium) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 60px 20px;
}

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

.content-section:last-child {
    margin-bottom: 0;
}

/* Cards */
.card {
    background-color: var(--card-light-grey);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-turquoise), var(--accent-turquoise-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.card h3 {
    color: var(--highlight-deep-blue);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background-color: #e8f4f8;
    border-left: 4px solid var(--accent-turquoise);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--highlight-deep-blue);
    margin-bottom: 8px;
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-medium);
}

/* Warning Box */
.warning-box {
    background-color: #fff8e6;
    border-left: 4px solid var(--warning-yellow);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: var(--highlight-deep-blue);
    margin-bottom: 8px;
}

/* Diagram Container */
.diagram-container {
    background-color: var(--card-light-grey);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--card-border);
}

.diagram-container svg {
    max-width: 100%;
    height: auto;
}

.diagram-caption {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* FAQ Section */
.faq-item {
    background-color: var(--card-light-grey);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--highlight-deep-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #eef4f6;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-turquoise);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-medium);
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Contact Form */
.contact-form {
    background-color: var(--card-light-grey);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--highlight-deep-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-turquoise), var(--accent-turquoise-dark));
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: var(--card-light-grey);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--card-border);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-turquoise), var(--accent-turquoise-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.2rem;
}

.contact-card h4 {
    color: var(--highlight-deep-blue);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--highlight-deep-blue);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-turquoise);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Disclaimer */
.disclaimer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--accent-turquoise);
}

.breadcrumbs span {
    margin: 0 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .two-column.reverse {
        direction: ltr;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav.active {
        display: block;
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--card-border);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 40px 15px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .page-header {
        padding: 40px 15px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    header, footer, .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero, .page-header {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .hero h1, .page-header h1 {
        color: black !important;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}