/* --- Basic Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f8fafc; color: #334155; }

/* --- Header & Footer (Normal Style) --- */
.site-header {
    background: white; padding: 10px 5%; display: flex; 
    justify-content: space-between; align-items: center;
    border-bottom: 2px solid #8fc1b0; position: sticky; top: 0; z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-icon { color: #226653; font-size: 1.5rem; }
.logo-text h1 { font-family: 'Poppins', sans-serif; font-size: 1.3rem; color: #1a3b2f; }
.logo-text p { font-size: 0.7rem; color: #64748b; }

.main-nav { display: flex; gap: 20px; }
.main-nav a, .dropbtn { 
    text-decoration: none; color: #1e293b; 
    font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.9rem; 
}

/* --- Content Layout (Mobile-First) --- */
.content-wrapper {
    display: flex; flex-direction: column; /* Mobile: Tools Top */
    max-width: 1200px; margin: 20px auto; padding: 0 15px; gap: 20px;
}

@media screen and (min-width: 950px) {
    .content-wrapper { flex-direction: row; }
    .article-feed { flex: 1; order: 1; }
    .sidebar { width: 300px; order: 2; }
}

/* --- Sidebar Tools Grid --- */
.sidebar-widget { background: white; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0; }
.widget-title { font-family: 'Poppins', sans-serif; font-size: 1rem; color: #226653; margin-bottom: 12px; }
.sidebar-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media screen and (min-width: 950px) {
    .sidebar-tools-grid { display: flex; flex-direction: column; }
}

.s-tool {
    display: flex; align-items: center; gap: 8px; padding: 12px;
    background: #f0fdf4; color: #166534; text-decoration: none;
    font-size: 0.8rem; font-weight: 600; border-radius: 8px; border: 1px solid #dcfce7;
}

/* --- PROFESSIONAL ARTICLE CONTENT (The Core) --- */
.pro-article {
    background: white; padding: 30px; border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Yahan Font Change Kiya Hai */
.pro-article h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem; color: #0f172a; font-weight: 700;
    margin: 30px 0 15px; line-height: 1.2;
}

.pro-article p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; line-height: 1.7; color: #475569;
    margin-bottom: 18px; text-align: justify;
}

/* --- Tables Styling --- */
.article-table-wrapper { overflow-x: auto; margin: 20px 0; border: 1px solid #f1f5f9; border-radius: 10px; }
.data-table { 
    width: 100%; border-collapse: collapse; 
    font-family: 'Inter', sans-serif; font-size: 0.85rem; 
}
.data-table th { background: #f8fafc; color: #1e293b; padding: 12px; text-align: left; border-bottom: 2px solid #e2e8f0; }
.data-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #64748b; }

/* --- Mobile Nav --- */
#nav-toggle { display: none; }
.hamburger-wrapper { display: none; }

@media screen and (max-width: 880px) {
    .hamburger-wrapper { display: block; cursor: pointer; font-size: 1.5rem; }
    .main-nav { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 20px; border-bottom: 1px solid #eee;
    }
    #nav-toggle:checked ~ .main-nav { display: flex; }
    .pro-article { padding: 20px 15px; }
    .pro-article h2 { font-size: 1.3rem; }
}
/* --- Navigation Core --- */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- Dropdown Container --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-checkbox {
    display: none; /* Checkbox ko chupa diya */
}

/* --- The Dropdown Box (The List) --- */
.dropdown-content {
    display: none; /* Default mein band rahega */
    position: absolute;
    background-color: white;
    min-width: 220px; /* List ki width thodi bari rakhi */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
}

/* List Items (Tools) - Inko ek ke niche ek karne ke liye */
.dropdown-content a {
    color: #334155;
    padding: 12px 20px;
    text-decoration: none;
    display: block; /* Isse links ek ke niche ek aayenge */
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0fdf4;
    color: #226653;
}

/* Jab checkbox click ho to list dikhao */
.dropdown-checkbox:checked ~ .dropdown-content {
    display: block;
}

/* Mobile Adjustments */
@media screen and (max-width: 880px) {
    .main-nav {
        display: none; /* Burger click par dikhega */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 20px;
    }
    
    .dropdown-content {
        position: static; /* Mobile par list fixed nahi rahegi */
        box-shadow: none;
        width: 100%;
        background: #f8fafc;
    }
}
/* --- FAQ Section Styling --- */
.faq-section {
    margin: 50px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.faq-title {
    color: #1a3b2f;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.faq-input {
    display: none;
}

.faq-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.3s;
}

.faq-label:hover {
    background: #f1f5f9;
}

.faq-label i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* Accordion Logic */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #ffffff;
}

.faq-content p {
    padding: 20px 25px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.faq-input:checked ~ .faq-content {
    max-height: 300px; /* Adjust as needed */
    border-top: 1px solid #edf2f7;
}

.faq-input:checked ~ .faq-label i {
    transform: rotate(45deg); /* Plus to Cross */
}

@media (max-width: 600px) {
    .faq-title { font-size: 1.4rem; }
    .faq-label { padding: 15px; font-size: 0.95rem; }
}
/* Container to give some breathing space */
.image-container {
    width: 100%;
    max-width: 850px; /* Article ki width ke mutabiq */
    margin: 25px auto;
    text-align: center;
    padding: 10px;
}

/* Image styling for all screens */
.responsive-img {
    width: 100%;        /* Mobile par poori width le */
    height: auto;       /* Aspect ratio kharab na ho */
    display: block;
    border-radius: 12px; /* Thoda modern look */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Halka sa shadow */
    transition: transform 0.3s ease;
}

/* Desktop par hover effect */
.responsive-img:hover {
    transform: scale(1.02);
}

/* Caption styling for SEO */
.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Mobile Specific Tweaks */
@media (max-width: 600px) {
    .image-container {
        padding: 5px;
        margin: 15px auto;
    }
}
/* ---------- FOOTER ---------- */
.site-footer {
    background: #162b24;
    color: #d6e9e1;
    padding: 3rem 2rem 2rem;
    margin-top: 2rem;
    border-top: 4px solid #479f83;
}
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    border-left: 4px solid #68b89b;
    padding-left: 12px;
}
.footer-col p,
.footer-col a {
    color: #c7e0d7;
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}
.footer-col a:hover {
    color: #bef5e2;
    padding-left: 5px;
}
.copyright {
    text-align: center;
    border-top: 1px solid #3c6052;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #9dbeb2;
    max-width: 1300px;
    margin: 0 auto;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 1200px) {
    .content-wrapper {grid-template-columns: 2fr 1fr;}
}
@media screen and (max-width: 950px) {
    .content-wrapper {grid-template-columns: 1fr; padding: 0 1rem;}
    .calculator-card, .sidebar-widget {margin: 0 auto;}
}
@media screen and (max-width: 880px) {
    .main-nav {display: none; flex-direction: column; width: 100%; background: white; padding: 1.5rem; border-top: 2px solid #b8d9ce;}
    #nav-toggle:checked ~ .main-nav {display: flex;}
    .hamburger-wrapper {display: flex; align-items: center;}
    .hamburger-label {font-size: 2rem; color: #226653; cursor: pointer;}
}

/* Smooth transitions for small screens */
input, select, button, .calculator-card, .sidebar-widget {
    transition: all 0.3s ease;
}
/* Cards Layout Wrapper */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 30px; /* Cards ke darmiyan fasla */
  max-width: 1200px; /* PC par zyada na phailay */
  margin: 40px auto; /* Page ke center mein rakhne ke liye */
  padding: 0 20px;
}

/* Card Container (Sharp Corners) */
.article-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 0; /* Goal kinare khatam */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box; 
}

/* Hover Effect */
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Image Styling */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover; 
}

/* Content Area */
.card-content {
  padding: 20px;
}

/* Title */
.card-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 700;
}

/* Description */
.card-desc {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Yeh lambi description ko 4 lines par cut kar dega aur aage ... laga dega taake card zyada lamba na ho */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button (Sharp Corners) */
.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2a7a6c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0; /* Button ke kinare bhi sharp */
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

/* Button Hover */
.read-more-btn:hover {
  background-color: #1e5c51;
}
.trending-patti-pro {
    background-color: #ffffff; /* Clean white background */
    color: #2c3e50; /* Professional dark slate grey text */
    font-size: 1.3rem; /* Font size kam kar diya */
    font-weight: 600;
    padding: 12px 16px;
    margin: 20px 0;
    
    /* Top par ek patli green line aur bottom par light break */
    border-top: 3px solid #1b4d3e; 
    border-bottom: 1px solid #eaeaea; 
    
    /* Halki si shadow depth ke liye */
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.05); 
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px; /* Text ko thoda khula aur neat dikhane ke liye */
}

.trending-patti-pro .icon {
    font-size: 1.2rem; /* Emoji ka size bhi text ke hisaab se adjust kiya */
}
