/* ============================================
   Internet Recharge Guide - Telecom Knowledge Base
   Qatar Informational Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-dark: #1a365d;
    --primary-blue: #2c5282;
    --accent-turquoise: #38b2ac;
    --accent-turquoise-light: #4fd1c5;
    --light-grey: #f7fafc;
    --medium-grey: #e2e8f0;
    --dark-grey: #4a5568;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-grey);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-left: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-turquoise));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--accent-turquoise) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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");
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-turquoise-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-turquoise {
    background: var(--accent-turquoise);
    color: var(--white);
}

.btn-turquoise:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Article Content */
.article-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.article-content h1 {
    color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-turquoise);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-grey);
}

.article-content h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--light-grey), #edf2f7);
    border-left: 4px solid var(--accent-turquoise);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Warning Box */
.warning-box {
    background: #fef3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 0.75rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-turquoise);
}

.sidebar-widget ul {
    list-style: none;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 0.75rem;
}

.sidebar-widget a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

.sidebar-widget a::before {
    content: '→';
    color: var(--accent-turquoise);
}

/* Quick Links Widget */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-links a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--light-grey);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 500;
}

.quick-links a:hover {
    background: var(--accent-turquoise);
    color: var(--white);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Feature Section */
.feature-section {
    background: var(--white);
    padding: 4rem 0;
}

.feature-section .container {
    text-align: center;
}

.feature-section h2 {
    margin-bottom: 1rem;
}

.feature-section > .container > p {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-grey);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-turquoise);
    font-weight: 300;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--medium-grey);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

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

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

.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-turquoise);
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

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

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Disclaimer */
.disclaimer {
    background: rgba(255,255,255,0.1);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.disclaimer strong {
    color: var(--accent-turquoise-light);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Full Width Page */
.page-full .article-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--medium-grey);
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs li::after {
    content: '/';
    color: var(--text-light);
}

.breadcrumbs li:last-child::after {
    display: none;
}

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

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

.breadcrumbs li:last-child {
    color: var(--primary-dark);
    font-weight: 500;
}

/* Diagram Container */
.diagram-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.diagram-container img {
    max-width: 100%;
    margin: 0 auto;
}

.diagram-container figcaption {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Print Styles */
@media print {
    .header, .footer, .sidebar, .menu-toggle {
        display: none;
    }
    
    .article-content {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
        font-size: 12pt;
    }
    
    a {
        color: inherit;
        text-decoration: underline;
    }
}