/* ==========================================
   GLOBAL & RESET
========================================== */

:root {
    --primary-color: #f6b800;
    --primary-dark: #d9a000;
    --secondary-color: #1e1e1e;
    --accent: #ec4899;
    --dark: #1e1e1e;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;

    --transition: all .3s ease;

    --header-height: 68px;
    --header-height-lg: 84px;
}

*,
*::before,
*::after {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    font-size:100%;
}

body {
    margin:0;
    padding:0;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Container */

.container{
    width:100%;
    max-width:1440px;
    margin:0 auto;
    padding-left:16px;
    padding-right:16px;
}

/* ==========================================
   HEADER
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* Logo */
.logo img {
    width: 95px;
}

/* ==========================================
   DESKTOP NAV
========================================== */

.main-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a:hover {
    color: #fff;
}

/* ==========================================
   DROPDOWN
========================================== */

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    width: max-content;
    min-width: 220px;

    flex-direction: column;

    background: var(--secondary-color);
    border-radius: 8px;
    padding: 10px 0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 1200;
}

/* Prevent hover gap flicker */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Dropdown items */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(246,184,0,0.2);
}

/* CTA */
.header-actions .btn {
    padding: 10px 18px;
}

/* ==========================================
   MOBILE MENU
========================================== */

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Slide Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary-color);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1100;
    padding: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile links */
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
    margin-bottom: 1rem;
}

.mobile-menu ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
    /* margin-bottom: 0.5rem; */
}

.mobile-menu a:hover {
    color: #f6b800 !important;
}

.mobile-menu ul li:hover > a {
    color: #f6b800 !important;
}   

/* Mobile dropdown */
.mobile-dropdown-menu {
    display: none !important;
    padding-left: 15px;
}

.mobile-dropdown-toggle[aria-expanded="true"] + .mobile-dropdown-menu {
    display: block !important;
}

/* FORCE dropdown to be hidden initially */
.dropdown-menu {
    display: none !important;
}

/* Only show on hover */
.dropdown:hover .dropdown-menu {
    display: flex !important;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.7rem;
}

.mobile-dropdown-menu a:hover {
    color: var(--primary-color) !important;
}

/* Mobile Menu Button */
.mobile-menu .btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1024px) {

    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================
   BUTTONS (GLOBAL)
========================================== */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:1rem 2.4rem;
    font-size:1.1rem;
    font-weight:600;
    border-radius:50px;
    text-decoration:none;
    transition:var(--transition);
    min-width:240px;
}

.btn-primary{
    background:var(--primary-color);
    color:#000;
    box-shadow:0 6px 18px rgba(246,184,0,.38);
}

.btn-primary:hover{
    background:white;
    color:var(--secondary-color);
    transform:translateY(-3px);
}

.btn-outline{
    border:2px solid var(--primary-color);
    color:var(--primary-color);
    background:transparent;
}

.btn-outline:hover{
    background:var(--primary-color);
    color:#000;
    transform:translateY(-3px);
}


/* ==========================================
   GRANT WRITING & FUNDRAISING PAGE STYLES
========================================== */

/* ==========================================
   HERO - OPTIMIZED & VISUALLY APPEALING
========================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: white;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(30,30,30,0.78), rgba(30,30,30,0.78)), 
                url('/assets/images/grant-hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: var(--header-height-lg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(90deg, #f6b800, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    color: rgba(255,255,255,0.95);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.hero-stats p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
}

.hero-btns .btn {
    min-width: 220px;
    padding: 1.1rem 2.6rem;
    font-size: 1.15rem;
}

/* Responsive */
@media (min-width: 768px) {
    .hero-btns {
        flex-direction: row;
        gap: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5.4rem;
    }
    .hero-subtitle {
        font-size: 1.45rem;
    }
}

/* Optional subtle fade-in */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFade 1.2s forwards 0.3s;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   OVERVIEW / WHY CHOOSE US
========================================== */

.overview {
    padding: 100px 0;
    background: #f9f9f9;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.65rem;
    margin-bottom: 1.6rem;
    color: var(--secondary-color);
    line-height: 1.15;
    position: relative;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
}

.overview-text p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--gray);
    margin-bottom: 1.8rem;
}

.overview-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform 0.4s ease;
}

.overview-image:hover {
    transform: scale(1.04);
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive - Side by side on desktop */
@media (min-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .overview-text {
        padding-right: 1.5rem;
    }
}

/* Process Flow Section - Modern Timeline Style */
.process-flow {
    padding: 100px 0;
    background: white;
}

.process-flow h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.process-intro {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray);
    max-width: 760px;
    margin: 0 auto 4rem;
}

.process-arrow {
    display: none; /* Only show on mobile */
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Horizontal line connecting steps */
.timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #ffd700);
    z-index: 1;
}

/* Each step */
.timeline-item {
    position: relative;
    width: 20%; /* 5 steps = 100% */
    float: left;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Icon circle */
.timeline-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(246,184,0,0.3);
    position: relative;
    z-index: 2;
}

/* Content */
.timeline-content {
    padding: 0 1rem;
}

.timeline-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .timeline::before {
        display: none; /* Hide line on smaller screens */
    }

    .timeline-item {
        width: 50%;
        float: none;
        display: inline-block;
        vertical-align: top;
        margin-bottom: 2rem;
    }

    .timeline-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .timeline-item {
        width: 100%;
    }
}

/* Clear floats */
.timeline::after {
    content: '';
    display: block;
    clear: both;
}

/* Mobile Vertical Flow with Downward Arrows */
@media (max-width: 991px) {
    .process-step {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        background: var(--primary-color);
        color: #000;
        font-weight: 700;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }
    
    .step-content .icon {
        font-size: 2.4rem;
        color: var(--primary-color);
        margin-bottom: 0.8rem;
    }
    
    .step-content h3 {
        font-size: 1.45rem;
        margin-bottom: 0.8rem;
        color: var(--secondary-color);
    }
    
    .step-content p {
        color: var(--gray);
        line-height: 1.65;
    }
    
    /* Downward Arrow */
    .process-arrow {
        display: block;
        text-align: center;
        font-size: 2.2rem;
        color: var(--primary-color);
        margin: 10px 0 20px;
        opacity: 0.7;
    }
    
    .process-step:last-child .process-arrow {
        display: none;
    }
}

/* ==========================================
   SUCCESS METRICS / RESULTS
========================================== */

.results {
    padding: 100px 0;
    background: var(--light);
    text-align: center;
}

.results h2 {
    font-size: 2.6rem;
    margin-bottom: 3.5rem;
    color: var(--secondary-color);
    position: relative;
}

.results h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.result-item {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-align: center;
}

.result-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

.result-icon {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.result-number {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.result-item p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Responsive */
@media (min-width: 768px) {
    .results-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   SUBSCRIPTION PLANS - GRANT & FUNDRAISING FOCUS
========================================== */

.subscription-plans {
    padding: 100px 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    text-align: center;
}

.subscription-plans h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.plans-intro {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--gray);
    max-width: 780px;
    margin: 0 auto 4rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(246,184,0,0.3);
}

.plan-header h3 {
    font-size: 1.85rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.plan-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1.15rem;
    color: var(--gray);
    font-weight: 400;
}

.plan-desc {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.plan-features li {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 0.9rem;
    position: relative;
    padding-left: 1.6rem;
}

.plan-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
    top: 0;
}

.plan-card .btn-primary {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.plans-footer {
    margin-top: 4rem;
    font-size: 1rem;
    color: var(--gray);
}

.plans-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   TESTIMONIALS
========================================== */

.testimonials {
    padding: 100px 0;
    background: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.testimonials-intro {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto 4rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1.8rem;
}

.testimonial-card cite {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
}

/* Responsive */
@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   CTA - FINAL CALL TO ACTION
========================================== */

.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #111 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(246,184,0,0.08));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.4rem;
    color: white;
}

.cta p {
    font-size: 1.22rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    max-width: 680px;
    margin: 0 auto 3rem;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}

.cta-btns .btn {
    min-width: 260px;
    padding: 1.15rem 2.8rem;
    font-size: 1.18rem;
}

.cta-trust {
    margin-top: 3rem;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

.cta-trust p {
    margin: 0;
}

/* Responsive */
@media (min-width: 768px) {
    .cta-btns {
        flex-direction: row;
        gap: 1.8rem;
    }
}

/* Footer */
.footer {
  background-color: #111;
  color: #ccc;
  padding: 40px 20px 30px;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  /* overflow: hidden; */
}

.footer .footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
  overflow: hidden;
}

.footer-logo img {
  margin-bottom: 15px;
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
}

.footer-info p {
  margin-bottom: 20px;
}

.social-links a {
  color: #ccc;
  font-size: 18px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f6b800;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #f6b800;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: #f6b800;
}

.footer-bottom {
  background-color: #111;
  /* border-top: 1px solid #333; */
  width: 100%;
  /* margin-top: 40px; */
  /* padding-top: 20px; */
  text-align: center;
  color: #f6b800;
  font-size: 14px;
  display: block;
  grid-column: 1 / -1; /* full width if inside grid accidentally */
  clear: both; /* avoids float or flex collision */
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* stacks all blocks */
    gap: 20px;
  }

  .footer-logo img {
    width: 140px;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 16px 0 8px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 10px; /* Reduced padding for smaller screens */
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f6b800;
  color: #000;
  border: none;
  border-radius: 50%;
  padding: 12px 14px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  background-color: #fff;
  transform: scale(1.1);
}
