/* =============================================
   STUDY GUIDES PAGE STYLES
   White theme with red accents matching the main site
   ============================================= */

/* Hero Section */
.sg-page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #DC143C 0%, #B22222 40%, #8B0000 100%);
    padding-top: 100px;
}

.sg-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sg-floating-shapes .sg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: rgba(255, 255, 255, 0.15);
}

.sg-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: sgFloat1 15s ease-in-out infinite;
}

.sg-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
    animation: sgFloat2 12s ease-in-out infinite;
}

.sg-shape-3 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 30%;
    animation: sgFloat3 18s ease-in-out infinite;
}

.sg-shape-4 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation: sgFloat1 10s ease-in-out infinite reverse;
}

@keyframes sgFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes sgFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(10deg); }
}

@keyframes sgFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -25px); }
    66% { transform: translate(-15px, 10px); }
}

.sg-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.sg-hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: sgIconBounce 2s ease-in-out infinite;
}

@keyframes sgIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sg-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.sg-title-line {
    display: block;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sg-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.sg-hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sg-scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: sgScrollPulse 2s ease-in-out infinite;
}

@keyframes sgScrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* Grid Section */
.sg-grid-section {
    position: relative;
    padding: 100px 0;
    background: #F8F9FA;
    overflow: hidden;
}

.sg-grid-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    pointer-events: none;
}

.sg-grid-decoration-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #DC143C, transparent 70%);
    top: -200px;
    right: -200px;
}

.sg-grid-decoration-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #DC143C, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.sg-grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.sg-grid-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #DC143C;
    margin-bottom: 1rem;
    padding: 6px 20px;
    border: 1px solid rgba(220, 20, 60, 0.25);
    border-radius: 30px;
    background: rgba(220, 20, 60, 0.06);
}

.sg-grid-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.sg-grid-subtitle {
    font-size: 1.1rem;
    color: #6C757D;
    max-width: 500px;
    margin: 0 auto;
}

/* Cards Grid */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.sg-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #2C3E50;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.sg-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 20, 60, 0.2);
    box-shadow: 0 20px 50px rgba(220, 20, 60, 0.12), 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sg-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.sg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.sg-card:hover .sg-card-image img {
    transform: scale(1.08);
    filter: brightness(0.5);
}

.sg-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(220, 20, 60, 0.0);
    opacity: 0;
    transition: all 0.4s ease;
}

.sg-card:hover .sg-card-overlay {
    opacity: 1;
    background: rgba(220, 20, 60, 0.35);
}

.sg-download-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.sg-card:hover .sg-download-icon {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.sg-download-icon svg {
    color: #fff;
}

.sg-download-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.sg-card:hover .sg-download-text {
    transform: translateY(0);
}

.sg-card-info {
    padding: 20px 24px;
}

.sg-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sg-card:hover .sg-card-title {
    color: #DC143C;
}

.sg-card-topic {
    font-size: 0.85rem;
    color: #6C757D;
    line-height: 1.5;
}

/* CTA Section (study-guides.html bottom) */
.sg-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    text-align: center;
}

.sg-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.sg-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.sg-cta-text {
    font-size: 1.1rem;
    color: #6C757D;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.sg-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sg-btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sg-btn-cta-primary {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: #fff;
    border: none;
}

.sg-btn-cta-primary:hover {
    background: linear-gradient(135deg, #B22222, #8B0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.35);
}

.sg-btn-cta-secondary {
    background: transparent;
    color: #6C757D;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.sg-btn-cta-secondary:hover {
    background: rgba(220, 20, 60, 0.05);
    border-color: rgba(220, 20, 60, 0.25);
    color: #DC143C;
    transform: translateY(-2px);
}

/* =============================================
   INDEX PAGE - STUDY GUIDES CTA SECTION
   ============================================= */

.study-guides-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 40%, #FFF0F0 70%, #FFFFFF 100%);
    overflow: hidden;
}

.sg-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sg-cta-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.sg-cta-bg-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #DC143C, transparent 70%);
    top: -150px;
    left: -150px;
    animation: sgFloat1 20s ease-in-out infinite;
}

.sg-cta-bg-shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #FF6B6B, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: sgFloat2 15s ease-in-out infinite;
}

.sg-cta-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sg-cta-header {
    margin-bottom: 40px;
}

.sg-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #DC143C;
    margin-bottom: 1.5rem;
    padding: 8px 22px;
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 30px;
    background: rgba(220, 20, 60, 0.06);
}

.sg-cta-badge-icon {
    font-size: 1.1rem;
}

.sg-cta-main-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sg-cta-main-title span {
    color: #DC143C;
}

.sg-cta-description {
    font-size: 1.15rem;
    color: #6C757D;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Committee Preview Strip */
.sg-cta-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sg-cta-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sg-cta-preview-item:hover {
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.15);
}

.sg-cta-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sg-cta-preview-item:hover img {
    transform: scale(1.1);
}

.sg-cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.3);
}

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

.sg-cta-action-btn:hover::before {
    left: 100%;
}

.sg-cta-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.45);
}

.sg-cta-action-btn svg {
    transition: transform 0.3s ease;
}

.sg-cta-action-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .sg-page-hero {
        min-height: 45vh;
        padding-top: 80px;
    }

    .sg-hero-icon {
        font-size: 3rem;
    }

    .sg-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .sg-card-image {
        height: 180px;
    }

    .sg-cta-preview-item {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .sg-cta-action-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .sg-grid-section {
        padding: 60px 0;
    }

    .study-guides-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .sg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sg-cta-preview {
        gap: 8px;
    }

    .sg-cta-preview-item {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }
}
