/* =====================================================
   HOME.CSS - Home Page Specific Styles
   Padmashri Manibhai Desai College Website
   ===================================================== */

/* Home page specific adjustments */

/* Hero section - moved animation keyframes to components.css */

/* Any home-page specific styling that doesn't belong in components */

/* ===== HERO SECTION ===== */
.hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    animation: slide 25s infinite;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@keyframes slide {
    0% {
        background-image: url('../../assets/images/1.jpg');
    }

    25% {
        background-image: url('../../assets/images/5.jpg');
    }

    50% {
        background-image: url('../../assets/images/2.jpg');
    }

    75% {
        background-image: url('../../assets/images/front1.jpg');
    }

    100% {
        background-image: url('../../assets/images/front3.jpg');
    }
}


/* ===== EVENTS SECTION ===== */
.events-details-section {
    padding: var(--space-4xl) 0;
}

.events-details-container {
    display: flex;
    gap: var(--space-xl);
    padding: 0;
}

.events-box-column,
.college-details-column {
    flex: 1;
}

.events-box {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.events-box h4 {
    color: var(--text-light);
    text-align: center;
}

.college-details-box {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.college-details-box h4 {
    color: var(--text-light);
    text-align: center;
}

.college-details-box p {
    color: var(--text-light);
}

/* Marquee/Scrolling content */
.marquee-viewport {
    height: 300px;
    overflow-y: auto;
}

.marquee-track {
    animation: marquee-scroll 12s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.marquee-item a {
    display: block;
    background: #f1f1f1;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color var(--transition-fast);
}

.marquee-item a:hover {
    background: var(--color-accent-hover);
}

/* ===== FEATURE CARDS (Leadership Section) ===== */
.features {
    padding-bottom: 70px;
    padding-left: var(--space-3xl);
    padding-right: var(--space-3xl);
    background-color: var(--bg-dark);
    text-align: center;
}

.features h2 {
    padding-top: var(--space-lg);
    margin-bottom: var(--space-2xl);
    color: var(--text-light);
    font-size: 23px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--bg-feature-card);
    padding: 25px;
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-feature);
}

.feature-card img {
    border-radius: var(--radius-circle);
    margin: 0 auto;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.feature-card .position {
    color: red;
}

.feature-card .group {
    color: blue;
}

/* ===== VIP CARD ===== */
/* --- Base Styles (Desktop) --- */
.vip-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    width: 90vw;
    max-width: 1100px; /* Added a max-width so it doesn't get too wide on 4k monitors */
    min-height: 320px; /* Changed 'height' to 'min-height' to prevent text overflow */
    padding: var(--space-2xl) var(--space-3xl);
    border-radius: var(--radius-2xl);
    background: var(--gradient-vip);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin: var(--space-2xl) auto;
    overflow: hidden; /* Keeps the internal glow/shadows contained */
}

.vip-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-vip-hover);
}

.vip-img {
    flex: 0 0 280px;
    height: 280px; /* Fixed height for the container to keep it square/proportional */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.vip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.vip-img img:hover {
    transform: scale(1.08);
}

.vip-info {
    flex: 1;
    color: #f1f5f9;
}

.vip-info h2 {
    font-size: 24px; /* Slightly increased for desktop prominence */
    margin-bottom: var(--space-md);
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: -5px;
}

.vip-info p {
    margin: var(--space-sm) 0;
    font-size: var(--fs-md);
    color: var(--text-body);
    line-height: 1.6;
}

.vip-info strong {
    color: #06b6d4;
}

/* --- Responsive Media Queries --- */

/* For Tablets and smaller (992px) */
@media (max-width: 992px) {
    .vip-card {
        flex-direction: column; /* Stack image and text vertically */
        height: auto; 
        padding: var(--space-xl);
        text-align: center; /* Center text for a better mobile look */
    }

    .vip-img {
        flex: 0 0 250px; /* Adjust image size slightly */
        width: 250px;
        margin-bottom: var(--space-lg);
    }

    .vip-info {
        padding-right: 0; /* Remove desktop right padding */
    }
}

/* For Phones (576px) */
@media (max-width: 576px) {
    .vip-card {
        width: 95vw; /* Take up more width on tiny screens */
        padding: var(--space-lg);
    }

    .vip-info h2 {
        font-size: 1.2rem;
    }

    .vip-info h3 {
        font-size: 0.9rem;
    }

    .vip-info p {
        font-size: 0.85rem;
    }
}

/* ===== COURSE CARDS ===== */
.courses-wrap {
    max-width: var(--max-width-md);
    margin: auto;
    padding: var(--space-2xl);
}

.courses-wrap .controls {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.courses-wrap .controls input,
.courses-wrap .controls select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
}

.courses-wrap .controls input {
    flex: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.card {
    background: var(--bg-course-card);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

.card h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--fs-md);
}

.card p {
    font-size: var(--fs-sm);
    opacity: 0.9;
}

/* ===== VIDEO SECTION ===== */
.videos-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--gradient-video-bg);
}

.videos-container {
    max-width: var(--max-width-md);
    margin: 0 auto;
}

.videos-section h2 {
    text-align: center;
    font-size: var(--fs-3xl);
    margin-bottom: 50px;
    color: var(--text-heading);
    font-weight: 700;
    font-family: var(--font-heading);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-xl);
    justify-items: center;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    max-width: 550px;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin: 0;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 85vh;
}

.modal-content {
    position: relative;
    text-align: center;
}

#modalTitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--space-sm);
    font-size: var(--fs-xl);
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--text-light);
    border: none;
    border-radius: var(--radius-round);
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== THANK YOU BOX ===== */
.thankyou-box {
    background: var(--color-primary);
    color: var(--text-light);
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--fs-lg);
}

.thankyou-box marquee {
    font-weight: bold;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: bold;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: #005cd1;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

table th,
table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background: var(--bg-dark);
    color: var(--text-light);
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: var(--color-accent-hover);
}

