/* ===========================
   RVNP Custom Styles
   Primary Colors:
   - Green: #2d9a4e
   - Red: #b81813
   - Dark: #030605
   - White: #fefefe
   =========================== */

/* Root Variables */
:root {
    --primary-green: #2d9a4e;
    --accent-red: #b81813;
    --dark: #030605;
    --white: #fefefe;
    --light-gray: #f5f5f5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Section Spacing */
.section-spacing {
    padding: 80px 0;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title .text-primary {
    color: var(--primary-green) !important;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin-bottom: 30px;
}

.title-underline.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-green);
    border: 2px solid var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-hero {
    background: var(--accent-red);
    border: 2px solid var(--accent-red);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* ===========================
   HERO CAROUSEL SECTION
   =========================== */
.hero-carousel {
    margin-top: 0;
    position: relative;
}

.hero-carousel .carousel {
    height: 600px;
}

.hero-carousel .carousel-inner {
    height: 100%;
}

.hero-carousel .carousel-item {
    height: 100%;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 5, 0.5);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-carousel .carousel-caption h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption p {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 30px;
}

/* Carousel Animations */
.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.3s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 1s ease-out 0.6s both;
}

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

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(45, 154, 78, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--accent-red);
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(254, 254, 254, 0.5);
    border: 2px solid var(--white);
    margin: 0 5px;
}

.hero-carousel .carousel-indicators button.active {
    background: var(--primary-green);
}

/* ===========================
   WELCOME SECTION
   =========================== */
.welcome-section {
    background: var(--white);
}

.welcome-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-content {
    padding-left: 40px;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.feature-item span {
    font-weight: 600;
    color: var(--dark);
}

/* ===========================
   COURSES SECTION
   =========================== */
.courses-section {
    background: var(--light-gray);
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 154, 78, 0.2);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.course-description {
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.course-duration {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
}

/* ===========================
   WHY CHOOSE US SECTION
   =========================== */
.why-choose-section {
    background: var(--white);
}

.feature-box {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 154, 78, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), #25804a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent-red), #930f0b);
    transform: rotate(360deg);
}

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

.feature-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-box p {
    color: #666;
    margin-bottom: 0;
}

/* ===========================
   PRINCIPAL MESSAGE SECTION
   =========================== */
.principal-section {
    background: var(--light-gray);
}

.principal-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principal-image {
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.principal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-content {
    padding: 40px;
}

.principal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.principal-name {
    font-size: 1.1rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 20px;
}

.principal-message {
    color: #444;
    line-height: 1.8;
}

.principal-message p {
    margin-bottom: 15px;
}

/* ===========================
   CALL TO ACTION SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), #25804a);
    color: var(--white);
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.cta-section .lead {
    font-size: 1.2rem;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

/* Tablets */
@media (max-width: 991px) {
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-carousel .carousel {
        height: 500px;
    }
    
    .hero-carousel .carousel-caption h3 {
        font-size: 2.2rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .welcome-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .principal-image {
        min-height: 300px;
    }
    
    .principal-content {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .section-spacing {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-carousel .carousel {
        height: 400px;
    }
    
    .hero-carousel .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel .carousel-control-next {
        right: 15px;
    }
    
    .course-image {
        height: 200px;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .principal-title {
        font-size: 1.6rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    /* Mobile Button Optimization */
    .btn,
    .btn-primary,
    .btn-hero,
    .btn-light,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: inline-block;
        width: auto;
        margin: 5px 3px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn i {
        font-size: 0.85rem;
    }
    
    /* CTA Section Button Layout */
    .cta-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        text-align: center;
    }
    
    /* Contact Section Button Layout */
    .contact-section .text-center a {
        width: 100%;
        max-width: 280px;
        display: block;
        margin: 0 auto 10px auto;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-carousel .carousel {
        height: 350px;
    }
    
    .hero-carousel .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-box h4 {
        font-size: 1.1rem;
    }
    
    /* Extra Small Mobile Button Optimization */
    .btn,
    .btn-primary,
    .btn-hero,
    .btn-light,
    .btn-outline-light,
    .btn-lg {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 8px 0;
    }
    
    .cta-section .btn,
    .contact-section .text-center a {
        width: 100%;
        max-width: 100%;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.bg-light {
    background: var(--light-gray) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.rounded {
    border-radius: 10px !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove focus outline on buttons */
button:focus,
.btn:focus {
    outline: none;
    box-shadow: none;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}
