/* ============================================
   KSITPCS - Kerala State IT Professionals Co-operative Society
   Modern, Professional Design
   ============================================ */

/* CSS Variables for Theme - Matching logo brand colors */
:root {
    /* Primary Colors - Blue from logo */
    --primary-color: #0093D0;        /* Primary Blue - Buttons, icons, headings */
    --primary-dark: #0077A8;          /* Darker blue for hover states */
    --primary-light: #00B0E8;         /* Lighter blue for gradients */
    
    /* Accent Colors - Green from logo "K" */
    --secondary-color: #3DB54A;      /* Accent Green - Highlights, section backgrounds */
    --secondary-dark: #2E8A3A;       /* Darker green */
    --secondary-light: #4DD965;      /* Lighter green */
    
    /* Accent Colors - Yellow swooshes from logo */
    --accent-color: #FFD200;         /* Accent Yellow - Lines, hover effects */
    --accent-dark: #E6BE00;          /* Darker yellow */
    
    /* Neutral Colors */
    --neutral-light: #F7F9FC;        /* Light backgrounds */
    --text-gray: #333333;            /* Primary text */
    
    /* Text Colors */
    --text-dark: #333333;            /* Primary text */
    --text-light: #666666;           /* Secondary text */
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-light: #F7F9FC;             /* Neutral light backgrounds */
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Other */
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 208, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-top {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
}

.header-top .container {
    max-width: 100%;
    padding: 0 20px;
}

.header-top .contact-info {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex-wrap: nowrap !important;
    font-size: 0.9rem;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-top .contact-info span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top .contact-info span:last-child {
    border-right: none;
}

.header-top .contact-info a {
    color: var(--text-white);
}

.header-top .contact-info a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-text {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-full-name {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.logo-full-name .reg-number {
    font-size: 0.85em;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 210, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 181, 74, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 147, 208, 0.2) 0%, transparent 60%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
    z-index: 1;
}

/* Curved divider after hero - mirroring logo swoosh */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 0 C 300 40 900 40 1200 0 L1200 60 L0 60 Z' fill='%23F7F9FC'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-banner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}

.hero-malayalam {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.slide-description {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slider-dots {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: inline-block;
}

.dot.active,
.dot:hover {
    background: var(--text-white);
    transform: scale(1.4);
    border-color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.7;
    animation: fadeInUp 1s ease;
}

.reg-number {
    font-size: 0.6em;
    font-weight: 500;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    color: var(--text-white);
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--neutral-light);
}

section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 60 C 300 20 900 20 1200 60 L1200 0 L0 0 Z' fill='%23ffffff'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
}

section:nth-child(odd):not(.hero)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 0 C 300 40 900 40 1200 0 L1200 60 L0 60 Z' fill='%23F7F9FC'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 147, 208, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.section-header h2 {
    margin-bottom: 16px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top-color: var(--accent-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--text-white);
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.card h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 208, 0.1);
    border-radius: 16px;
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.calculators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.calculator-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: 20px;
    color: var(--text-white);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 147, 208, 0.25);
    transition: var(--transition);
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.calculator-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.calculator-card h3 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.calculator-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.calculator-card .btn-outline {
    border-color: var(--text-white);
    color: var(--text-white);
}

.calculator-card .btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* Interest Rates Section */
.interest-rates {
    background: linear-gradient(135deg, rgba(0, 147, 208, 0.05), rgba(61, 181, 74, 0.05));
}

.rate-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.rates-table-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.rates-table-wrapper h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.rates-table-wrapper h3 i {
    font-size: 1.8rem;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
}

.rates-table th,
.rates-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rates-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.rates-table tbody tr {
    transition: var(--transition);
}

.rates-table tbody tr:hover {
    background: var(--bg-light);
}

.rates-table tbody tr.highlight {
    background: rgba(255, 210, 0, 0.15);
    font-weight: 600;
    color: var(--text-dark);
    border-left: 3px solid var(--accent-color);
}

/* MDS Section */
.mds-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.mds-table-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.mds-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}

.mds-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
}

.mds-table th,
.mds-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.mds-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.mds-table tbody tr:hover {
    background: var(--bg-light);
}

.mds-note {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.facility-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facility-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 208, 0.1);
    border-radius: 16px;
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.facility-card h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.facility-card p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.facility-card ul {
    margin-top: 20px;
}

.facility-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.facility-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.facility-card ul li strong {
    color: var(--text-dark);
}

/* Team Section */
.team-table-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.team-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}

.team-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
}

.team-table th,
.team-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.team-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.team-table tbody tr:hover {
    background: var(--bg-light);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.gallery-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 208, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 36px;
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.gallery-item h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.gallery-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 208, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 147, 208, 0.3);
}

.contact-details h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 147, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    color: var(--primary-light);
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .rates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-banner {
        padding: 35px 25px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-malayalam {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .header-top .contact-info {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.85rem;
        gap: 0;
        padding: 0 15px;
    }
    
    .header-top .contact-info span {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .logo {
        gap: 8px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-full-name {
        font-size: 0.55rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calculators {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-malayalam {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-malayalam {
        font-size: 1rem;
    }

    .hero-banner {
        padding: 30px 20px;
    }

    .logo {
        gap: 6px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-full-name {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .header-top {
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-top .contact-info {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.75rem;
        gap: 0;
        padding: 0 10px;
    }
    
    .header-top .contact-info span {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0 5px;
        font-size: 0.7rem;
    }
    
    .header-top .contact-info span i {
        font-size: 0.85em;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-padding-top: 100px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

