/* Cauvery Institute of Law Color Scheme */
:root {
    --primary-blue: #1e40af;
    --primary-yellow: #fbbf24;
    --accent-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --bs-primary: #1e40af;
    --bs-secondary: #6b7280;
    --bs-success: #10b981;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-blue);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif;
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.sticky-top {
    border-bottom: 2px solid var(--primary-blue);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-blue) !important;
    background-color: rgba(30, 64, 175, 0.1);
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.dropdown-header {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: var(--white);
    color: var(--text-dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(59, 130, 246, 0.05) 100%);
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--text-light);
}

/* Section Styles */
.section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-card .card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 16px 16px 0 0;
    text-align: center;
    font-weight: 600;
    padding: 1.5rem;
    border: none;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-blue);
}

/* Card Variants */
.card-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.card-shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-yellow {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background-color: #E6C200;
    border-color: #E6C200;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Logo Styles */
.logo {
    max-height: 60px;
    width: auto;
}

/* Download Styles */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-download {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow)) 1;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Enhanced Button Styles */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn.rounded-pill {
    border-radius: 50px !important;
}

/* Card Hover Effects */
.card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Icon Enhancements */
.fa-2x {
    font-size: 2em !important;
}

.fa-3x {
    font-size: 3em !important;
}

.fa-4x {
    font-size: 4em !important;
}

.fa-5x {
    font-size: 5em !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .download-icon {
        font-size: 2.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .content-section {
        padding: 60px 0;
    }

    .feature-icon {
        font-size: 3rem;
    }
}