:root {
    --primary-color: #002147;
    /* Deep Navy Blue from Logo */
    --accent-color: #FFC107;
    /* Golden Yellow */
    --karnataka-red: #d32f2f;
    /* Karnataka Flag Red */
    --karnataka-yellow: #ffeb3b;
    /* Karnataka Flag Yellow */
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f4f6f9;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--karnataka-rell), var(--karnataka-yellow));
    /* Gradient bar */
    background-color: var(--accent-color);
}

.text-justify {
    text-align: justify;
}

/* --- Header & Navbar --- */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    padding: 5px 0;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    /* Adjust based on actual logo ratio */
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--karnataka-red) !important;
}

/* --- Orange Accent Stripe --- */
.accent-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 50%, #FF6F00 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 10;
    opacity: 0.95;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
}

.accent-stripe-small {
    width: 150px;
    height: 150px;
}

/* --- Hero Section --- */
.hero-section {
    /* Angled bottom for dynamic look */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
    background: #002147;
    /* Fallback */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0 100px;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

/* Split background effect - Left (Industrial) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.85)), url('../img/industrial_gears.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Split background effect - Right (Agricultural) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(rgba(255, 140, 0, 0.85), rgba(255, 111, 0, 0.78)), url('../img/agricultural.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    /* Diagonal edge */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #FFD700;
    margin-top: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- Vision & Mission (Diagonal) --- */
#about {
    position: relative;
    background: linear-gradient(135deg, #fff 50%, var(--bg-light) 50%);
}

/* --- Major Segments (Pyramid) --- */
.pyramid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.pyramid-level {
    text-align: center;
    color: white;
    padding: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
    /* Trapezoid shape */
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pyramid-level:hover {
    transform: scale(1.05);
}

.level-1 {
    width: 200px;
    background-color: var(--primary-color);
}

/* Farmers (Top) */
.level-2 {
    width: 350px;
    background-color: #e65100;
}

/* MSME (Middle) */
.level-3 {
    width: 500px;
    background-color: #fdd835;
    color: #333;
}

/* Large Scale (Base) */
.level-4 {
    width: 650px;
    background-color: var(--text-dark);
}

/* Institutions (Base 2) */

.segment-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}


/* --- Why FKRCCI (Map BG) --- */
#services {
    /* Karnataka map watermark with tiger */
    background: linear-gradient(rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.88)), url('../img/karnataka_map.png');
    background-size: 400px;
    background-position: right center;
    background-repeat: no-repeat;
}


/* --- Cards & Segments (Legacy Grid support if needed, or repurposed) --- */
.segment-card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    height: 100%;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header-custom {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    /* Reverse diagonal for footer */
    margin-top: -20px;
    /* Overlap with previous section */
    padding-top: 80px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Govt Accessibility Features --- */
.accessibility-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-a11y {
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
}

/* --- Board Members --- */
.objective-card {
    border: none;
    border-radius: 12px;
    padding: 25px 20px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.objective-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.objective-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.objective-card h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Vibrant Color Palette */
.obj-pink {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.obj-teal {
    background: linear-gradient(135deg, #009688 0%, #00796B 100%);
}

.obj-orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.obj-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.obj-red {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}

.obj-yellow {
    background: linear-gradient(135deg, #FFEB3B 0%, #FBC02D 100%);
    color: #333 !important;
}

.obj-blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.obj-green {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.obj-indigo {
    background: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%);
}

.obj-cyan {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

/* --- Board Members --- */
.board-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}