/* =========================================
   Calculator Pakistan - Frontend Styles
   ========================================= */

:root {
    --pk-green: #01411C;
    --pk-green-light: #026928;
    --pk-gold: #D4AF37;
    --pk-gold-light: #e6c65e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    margin: 0;
}

a { color: var(--pk-green); text-decoration: none; }
a:hover { color: var(--pk-green-light); text-decoration: underline; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 12px 0;
}

.site-header .navbar-brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--pk-green);
    display: flex;
    align-items: center;
}

.site-header .navbar-brand i {
    color: var(--pk-gold);
    font-size: 26px;
}

.site-header .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 8px 16px !important;
    font-size: 15px;
    transition: color 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--pk-green);
}

.site-header .navbar-toggler {
    border: 1px solid var(--gray-200);
    padding: 6px 10px;
}
.site-header .navbar-toggler:focus { box-shadow: none; }

/* Dropdown */
.site-header .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    margin-top: 8px;
}

.site-header .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.15s;
}

.site-header .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--pk-green);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--pk-green) 0%, var(--pk-green-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 17px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.hero .hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero .hero-search input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero .hero-search input:focus { outline: none; }

/* =========================================
   SECTION
   ========================================= */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pk-green);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: var(--pk-gold); }

.section-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 30px;
}

/* =========================================
   CATEGORY CARD
   ========================================= */
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pk-gold);
    text-decoration: none;
    color: inherit;
}

.category-card .cat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pk-green) 0%, var(--pk-green-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-gold);
    font-size: 28px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pk-green);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   CALCULATOR LIST CARD
   ========================================= */
.calc-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    border-left: 4px solid var(--pk-green);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.calc-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    border-left-color: var(--pk-gold);
    text-decoration: none;
    color: inherit;
}

.calc-card .calc-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-green);
    font-size: 22px;
}

.calc-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--pk-green);
}

.calc-card p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumb-bar .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-bar a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb-bar a:hover { color: var(--pk-green); }

.breadcrumb-bar .active {
    color: var(--pk-green);
    font-weight: 600;
}

/* =========================================
   CALCULATOR PAGE
   ========================================= */
.calc-page-header {
    background: linear-gradient(135deg, var(--pk-green) 0%, var(--pk-green-light) 100%);
    color: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.calc-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.calc-page-header .cat-badge {
    display: inline-block;
    background: rgba(212,175,55,0.25);
    color: var(--pk-gold);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Calculator Box */
.calc-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--pk-gold);
}

.calc-box .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.calc-box .form-control,
.calc-box .form-select {
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.calc-box .form-control:focus,
.calc-box .form-select:focus {
    border-color: var(--pk-green);
    box-shadow: 0 0 0 3px rgba(1,65,28,0.1);
}

.calc-box .btn-calculate {
    background: linear-gradient(135deg, var(--pk-green) 0%, var(--pk-green-light) 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    transition: all 0.25s;
}

.calc-box .btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1,65,28,0.3);
    color: var(--pk-gold);
}

.calc-result {
    background: linear-gradient(135deg, rgba(1,65,28,0.05) 0%, rgba(212,175,55,0.08) 100%);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    border: 2px dashed var(--pk-gold);
}

.calc-result h3 {
    font-size: 22px;
    color: var(--pk-green);
    font-weight: 700;
    margin-bottom: 15px;
}

.result-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.result-box .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--pk-green);
}

.result-box .label {
    font-size: 13px;
    color: var(--gray-500);
}

/* =========================================
   FAQ
   ========================================= */
.faq-section { margin-top: 40px; }

.faq-section h2 {
    font-size: 22px;
    color: var(--pk-green);
    font-weight: 700;
    margin-bottom: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: var(--pk-green);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item button i {
    transition: transform 0.25s;
    color: var(--pk-gold);
}

.faq-item.open button i { transform: rotate(180deg); }

.faq-item .faq-body {
    padding: 0 20px 18px;
    display: none;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.open .faq-body { display: block; }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.sidebar-box h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pk-green);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box h5 i { color: var(--pk-gold); }

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li { margin-bottom: 6px; }

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.15s;
}

.sidebar-list a:hover {
    background: var(--gray-50);
    color: var(--pk-green);
    padding-left: 14px;
}

.sidebar-list a i {
    color: var(--pk-gold);
    margin-right: 8px;
}

/* =========================================
   AD SLOTS
   ========================================= */
.ad-slot {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   CONTENT
   ========================================= */
.content-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.content-box h2 {
    color: var(--pk-green);
    font-weight: 700;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.content-box h3 {
    color: var(--pk-green);
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-box p { color: var(--gray-700); margin-bottom: 12px; }
.content-box ul { color: var(--gray-700); padding-left: 20px; }
.content-box ul li { margin-bottom: 6px; }

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--pk-green) 0%, var(--pk-green-light) 100%);
    color: #fff;
    padding: 45px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: linear-gradient(135deg, #012d13 0%, var(--pk-green) 100%);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.site-footer .footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.site-footer .footer-brand i { color: var(--pk-gold); }

.site-footer .footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: all 0.25s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--pk-gold);
    color: var(--pk-green);
    transform: translateY(-2px);
}

.site-footer .footer-heading {
    color: var(--pk-gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li { margin-bottom: 8px; }

.site-footer .footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.site-footer .footer-links a:hover {
    color: var(--pk-gold);
    padding-left: 4px;
}

.site-footer .footer-col h6 {
    color: var(--pk-gold);
    font-weight: 700;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-bottom a:hover { color: var(--pk-gold); }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pk-green);
    color: var(--pk-gold);
    border: none;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.25s;
}

.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--pk-gold); color: var(--pk-green); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .section { padding: 35px 0; }
    .section-title { font-size: 20px; }
    .calc-page-header h1 { font-size: 22px; }
    .calc-box { padding: 20px; }
    .content-box { padding: 20px; }
}