/* ===================================
   GUIDES PAGE CSS - Fresh Start
   SequrSign Digital Signature Guides
   Correct colors, no clipping, no inline CSS
   =================================== */

/* ===================================
   EXACT COLOR VARIABLES FROM RESOURCES
   =================================== */
:root {
    /* Primary Gradient: #667eea to #764ba2 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    
    /* Brand Colors: #2c5aa0 primary, #1e3d6f secondary, #28a745 accent */
    --brand-primary: #2c5aa0;
    --brand-secondary: #1e3d6f;
    --brand-accent: #28a745;
    --brand-warning: #ff6b35;
    
    /* Typography */
    --primary-font: 'Nunito', sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 80px rgba(0,0,0,0.2);
    
    /* Spacing */
    --section-padding: 120px;
    --card-padding: 50px;
    --border-radius: 25px;
}

/* ===================================
   BODY AND BASIC OVERRIDES
   =================================== */

/* Remove any top padding that causes clipping */
body.page-content {
    padding-top: 0 !important;
}

/* ===================================
   PAGE LOADER
   =================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   SCROLL INDICATOR
   =================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ===================================
   PAGE HEADER - NO CLIPPING
   =================================== */

.page-header {
    background: var(--primary-gradient) !important;
    padding: 250px 0 80px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    color: white !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><circle cx="100" cy="150" r="120" fill="url(%23grad1)" /><circle cx="850" cy="300" r="150" fill="url(%23grad1)" /><circle cx="300" cy="750" r="180" fill="url(%23grad1)" /><circle cx="750" cy="850" r="130" fill="url(%23grad1)" /><circle cx="500" cy="400" r="100" fill="url(%23grad1)" /></svg>');
    opacity: 0.8;
    animation: float 25s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    animation: shimmer 8s ease-in-out infinite;
}

.page-header h1 {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 35px !important;
    animation: fadeInUp 1.2s ease-out !important;
    line-height: 1.1 !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    position: relative !important;
    z-index: 3 !important;
}

.page-header p {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    opacity: 0.95 !important;
    margin-bottom: 50px !important;
    animation: fadeInUp 1.2s ease-out 0.3s both !important;
    line-height: 1.6 !important;
    max-width: 90% !important;
    color: rgba(255,255,255,0.95) !important;
    position: relative !important;
    z-index: 3 !important;
}

.header-stats {
    animation: fadeInUp 1.2s ease-out 0.6s both !important;
    display: flex !important;
    gap: 60px !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 3 !important;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===================================
   SECTION TITLES
   =================================== */

.section-title {
    text-align: center;
    margin-bottom: 100px;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #2c3e50 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* Apply gradient only to specific hero section titles if needed */
.hero-section .section-title h2,
.main-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===================================
   FEATURED GUIDE SECTION
   =================================== */

.featured-guide-section {
    background: white;
    padding: var(--section-padding) 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.featured-guide {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.featured-guide:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.featured-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.featured-guide:hover::before {
    transform: scaleX(1);
}

.featured-content {
    position: relative;
    z-index: 2;
}

.guide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.difficulty {
    background: var(--brand-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.duration {
    background: rgba(0,0,0,0.05);
    color: #6c757d;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.featured-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
}

.featured-content p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 35px;
    line-height: 1.7;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.feature-item i {
    color: var(--brand-accent);
    font-size: 16px;
    font-weight: 600;
}

.feature-item span {
    color: #2c3e50;
    font-weight: 500;
}

.featured-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

/* ===================================
   CATEGORIES SECTION
   =================================== */

.categories-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="900" cy="100" r="100" fill="rgba(102, 126, 234, 0.03)" /><circle cx="100" cy="500" r="150" fill="rgba(118, 75, 162, 0.02)" /><circle cx="800" cy="800" r="120" fill="rgba(79, 172, 254, 0.03)" /></svg>');
    animation: float 30s ease-in-out infinite reverse;
}

.category-card {
    background: white;
    padding: 60px 45px;
    border-radius: var(--border-radius);
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.04) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.category-card:hover::before {
    transform: scale(1);
}

.category-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotateY(180deg);
    box-shadow: var(--shadow-xl);
}

.category-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.category-stats {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.guide-count {
    background: rgba(40, 167, 69, 0.1);
    color: var(--brand-accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-link:hover {
    color: var(--brand-primary);
    text-decoration: none;
    transform: translateX(5px);
}

/* ===================================
   POPULAR GUIDES SECTION
   =================================== */

.popular-guides-section {
    padding: var(--section-padding) 0;
    background: white;
    position: relative;
}

.guide-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.guide-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.guide-image {
    position: relative;
    height: 200px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guide-image .image-placeholder {
    font-size: 3rem;
    color: white;
}

.guide-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-accent);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-content {
    padding: 35px;
    position: relative;
    background: white;
    z-index: 1;
}

.guide-content .guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.guide-content .duration {
    color: #6c757d;
    font-weight: 500;
    background: transparent;
    padding: 0;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.guide-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.guide-content p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.guide-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(40, 167, 69, 0.1);
    color: var(--brand-accent);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-guide {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-guide:hover {
    color: var(--brand-primary);
    text-decoration: none;
    transform: translateX(5px);
}

.load-more-section {
    text-align: center;
    margin-top: 60px;
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.download-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.download-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
}

.download-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.download-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    color: #2c3e50;
    font-weight: 500;
    font-size: 16px;
}

.download-benefits .fas {
    color: var(--brand-accent);
    font-size: 16px;
    font-weight: 600;
}

.download-form {
    background: rgba(0,0,0,0.02);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 15px;
    border: 3px solid #e9ecef;
    padding: 18px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.15);
    transform: translateY(-2px);
}

.download-privacy {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin: 15px 0 0 0;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 35px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--brand-primary);
    border: 3px solid var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.btn-lg {
    padding: 22px 45px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotate(1deg); 
    }
    50% { 
        transform: translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: translateY(15px) rotate(-1deg); 
    }
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%); 
    }
    100% { 
        transform: translateX(100%); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .page-header h1 {
        font-size: 4rem !important;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 150px 0 60px !important;
    }
    
    .page-header h1 {
        font-size: 3.5rem !important;
    }

    .header-stats {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .guide-features {
        grid-template-columns: 1fr;
    }

    .featured-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 50px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }

    .page-header p {
        font-size: 1.2rem !important;
        max-width: 100% !important;
    }

    .featured-guide {
        padding: 40px 30px;
    }
    
    .category-card {
        padding: 40px 30px;
        margin-bottom: 30px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .guide-content {
        padding: 25px;
    }
    
    .download-card {
        padding: 40px 30px;
    }
    
    .download-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 40px !important;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }

    .header-stats {
        gap: 20px !important;
    }

    .featured-guide {
        padding: 30px 20px;
    }
    
    .category-card {
        padding: 30px 20px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .download-card {
        padding: 30px 20px;
    }
    
    .download-form {
        padding: 25px;
    }
    
    .form-control {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 12px;
    }
    
    .btn-lg {
        padding: 18px 35px;
        font-size: 14px;
    }
}
