/* ==========================================================================
   CSS Variables & Root Styles
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #cb0c0c;
    --color-primary-dark: #952624;
    --color-primary-light: #e53e3e;
    --color-accent: #ff6b35;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 30px rgba(203, 12, 12, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

 

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 2px 10px rgba(203, 12, 12, 0.3);
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.insbanner {
    position: relative;
    background: linear-gradient(135deg, #cb0c0c 0%, #952624 50%, #7a1f1d 100%);
    padding: 40px 0 60px;
    overflow: hidden;
    margin-bottom: 80px;
}

/* Decorative Overlay - Enhanced Geometric Patterns */
.decorative-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.decorative-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 45%;
    height: 200%;
    background: linear-gradient(45deg, rgba(229, 112, 110, 0.3) 0%, transparent 70%);
    transform: skewY(-15deg);
    animation: slideInLeft 1s ease-out;
}

.decorative-overlay::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 40%;
    height: 150%;
    background: linear-gradient(-45deg, rgba(149, 38, 36, 0.2) 0%, transparent 60%);
    transform: skewY(10deg);
    animation: slideInRight 1s ease-out;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) translateX(-40px) scale(1.05);
        opacity: 0.4;
    }
}

/* Header Content */
.ins-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ins-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.6s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ins-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.ins-title {
    
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 16px;
    
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* .ins-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-white), transparent);
    margin: 0 auto;
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s ease-out 0.4s both;
} */

/* ==========================================================================
   Main Content
   ========================================================================== */

/* .main-content {
    padding: 0 0 60px;
} */

/* Introduction Card */
.intro-section {
    margin-bottom: 30px;
}

.intro-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(203, 12, 12, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.intro-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.intro-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    
}

.intro-icon i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
    margin-bottom: 70px;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-white) 0%, #fafafa 100%);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* .stat-card:hover::before {
    transform: scaleX(1);
} */

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.1), rgba(149, 38, 36, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition-base);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    /* transform: rotate(360deg) scale(1.1); */
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.stat-card:hover .stat-icon i {
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.partner-header {
    margin-bottom: 30px;
}

.partner-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
  
}



.partner-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* ==========================================================================
   Logo Cards Section
   ========================================================================== */

.logos-section {
    margin-bottom: 60px;
}

.logo-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    /* min-height: 180px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
}

.logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.03), rgba(149, 38, 36, 0.03));
    opacity: 0;
    transition: var(--transition-base);
}

.logo-card:hover::before {
    opacity: 1;
}

.logo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px) scale(1.03);
    border-color: var(--color-primary);
}

/* Featured Card */
.logo-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-primary);
}

.logo-card.featured .logo-badge i {
    color: var(--color-accent);
}

/* Logo Badge */
.logo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.1), rgba(149, 38, 36, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    z-index: 3;
    transition: var(--transition-base);
}

.logo-card:hover .logo-badge {
    opacity: 1;
    transform: scale(1);
}

.logo-badge i {
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* Logo Wrapper */
.logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.logo-card:hover .logo-wrapper {
    transform: scale(1.05);
}

.logo-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) brightness(1);
    transition: var(--transition-base);
}

.logo-card:hover .logo-img {
    filter: grayscale(0%) brightness(1.1);
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgb(247 210 210), transparent);
    transform: translateY(100%);
    transition: var(--transition-base);
}

.logo-card:hover .logo-overlay {
    transform: translateY(0);
}

.logo-name {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.cta-icon i {
    font-size: 2.2rem;
    color: var(--color-white);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn-primary-custom {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-white);
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-custom {
    background: transparent;
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-custom:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer-section {
    background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-900));
    padding: 40px 0;
    margin-top: 60px;
}

.footer-text {
    color: var(--color-gray-300);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%) skewY(-15deg);
    }
    to {
        transform: translateX(0) skewY(-15deg);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) skewY(10deg);
    }
    to {
        transform: translateX(0) skewY(10deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Desktop (≥ 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
    .ins-title {
        font-size: 2.4rem;
    }
    
    .partner-title {
        font-size: 2.75rem;
    }
    
    /* .logo-card {
        min-height: 190px;
    } */
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .insbanner {
        padding: 70px 0 90px;
        margin-bottom: 70px;
    }
    
    .ins-title {
        font-size: 1.75rem;
    }
    
    .partner-title {
        font-size: 2.25rem;
    }
    
    /* .logo-card {
        min-height: 170px;
    } */
    
    .cta-card {
        padding: 50px 30px;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .insbanner {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
       .ins-icon {
        width: 48px;
        height: 48px;
        padding: 9px;
        margin: 0;
    }
    .ins-icon i{font-size: 1.2rem;}
    
    .ins-icon i {
        font-size: 1.2rem;
    }
    
    .ins-title {
        font-size: 1.06rem;
        padding: 0 20px;
    }
    
    .intro-card {
        padding: 30px 24px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
        .ins-content {
        position: relative;
        z-index: 2;
        display: flex;
        /* text-align: center; */
        gap: 1rem;
        align-items: center;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    .main-content{padding: 0px 0px 30px;}
    .cta-section {
        padding: 30px 0px;
    margin-bottom: 0px;
}
    .stat-number {
        font-size:1.6rem;
    }
    
    .partner-title {
        font-size: 1.85rem;
    }
    
    .partner-subtitle {
        font-size: 1rem;
    }
    
    .logo-card {
        /* min-height: 140px; */
        padding: 16px;
    }
    
    .logo-img {
        max-height: 70px;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-title {
        font-size: 1.2rem;
        
    }
    
    .cta-text {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .ins-title {
        font-size: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
    
    .intro-card {
        padding: 16px;
    }
    
    .stats-section {
        margin-bottom: 50px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.4rem;
    }
    
    .logo-card {
        min-height: 130px;
        padding: 16px;
    }
}

/* Extra Small Mobile (≤ 375px) */
@media (max-width: 375px) {
    .ins-title {
        font-size: 1.2rem;
    }
    
    .partner-title {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .logo-card {
        min-height: 120px;
        padding: 14px;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .insbanner {
        background: var(--color-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .scroll-progress,
    .scroll-top,
    .floating-shapes,
    .cta-section {
        display: none !important;
    }
    
    .logo-card {
        box-shadow: none;
        border: 1px solid var(--color-gray-300);
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus Visible Styles */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
