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

:root {
    --primary-color: #1a5f4a;
    --secondary-color: #d4af37;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --arabic-color: #1a5f4a;
    --urdu-color: #5a6c7d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2e7d5a 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::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");
    opacity: 0.3;
}

.main-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Kalima Section */
.kalima-section {
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.kalima-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.kalima-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2e7d5a 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kalima-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.kalima-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 600;
}

/* Kalima Content */
.kalima-content {
    padding: 30px;
}

/* Arabic Line */
.arabic-line {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5e9 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    border-right: 5px solid var(--primary-color);
    position: relative;
}

.arabic-line::before {
    content: '﷽';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.arabic-text {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.6rem;
    color: var(--arabic-color);
    text-align: center;
    line-height: 2.2;
    font-weight: 500;
    direction: rtl;
}

/* Urdu Translation */
.urdu-translation {
    background: #fafafa;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-right: 5px solid var(--secondary-color);
    position: relative;
}

.urdu-translation:last-child {
    margin-bottom: 0;
}

.urdu-translation::before {
    content: 'ترجمہ';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.3rem;
    color: var(--urdu-color);
    text-align: right;
    line-height: 2;
    padding-top: 10px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .kalima-header {
        padding: 15px 20px;
    }
    
    .kalima-title {
        font-size: 1.4rem;
    }
    
    .kalima-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .kalima-content {
        padding: 20px;
    }
    
    .arabic-line {
        padding: 20px;
    }
    
    .arabic-text {
        font-size: 1.3rem;
    }
    
    .urdu-translation {
        padding: 15px 20px;
    }
    
    .urdu-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .arabic-text {
        font-size: 1.1rem;
    }
    
    .urdu-text {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .kalima-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .header {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}