/* 
   SNU Chennai Clone - Custom Overrides CSS
   This file styles our replaced custom homepage sections and overrides.
*/

/* 1. Academics 50/50 notice & admissions section */
.custom-academics-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    width: 100%;
}

.custom-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Notice Board */
.custom-notice-board {
    background-color: #F8F9FA;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 4px solid #005197;
}

.custom-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #ECECEC;
    padding-bottom: 12px;
}

.custom-notice-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-notice-title::before {
    content: '';
    width: 5px;
    height: 22px;
    background-color: #FF8C06;
    border-radius: 2px;
    display: inline-block;
}

.custom-notice-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar styling */
.custom-notice-list::-webkit-scrollbar {
    width: 5px;
}
.custom-notice-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-notice-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2.5px;
}
.custom-notice-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.custom-notice-item {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ECECEC;
}

.custom-notice-item:last-child {
    border-bottom: none;
}

.custom-date-box {
    background-color: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 6px;
    min-width: 60px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.custom-date-day {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #005197;
    line-height: 1;
}

.custom-date-month {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FF8C06;
    margin-top: 2px;
}

.custom-notice-info {
    flex: 1;
}

.custom-notice-link {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
    display: block;
    margin-bottom: 4px;
}

.custom-notice-link:hover {
    color: #005197;
}

.custom-notice-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #6D7380;
}

/* Admissions Block */
.custom-admission-block {
    background-color: #FFF7E9;
    border-radius: 8px;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 4px solid #FF8C06;
    position: relative;
    overflow: hidden;
}

.custom-admission-tag {
    background-color: #FF8C06;
    color: #FFFFFF;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.custom-admission-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #005197;
}

.custom-admission-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3C3C3C;
    margin-bottom: 25px;
}

.custom-admission-ctas {
    display: flex;
    gap: 15px;
}

.custom-btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.custom-btn-primary {
    background-color: #005197;
    color: #FFFFFF;
}

.custom-btn-primary:hover {
    background-color: #003a6d;
}

.custom-btn-outline {
    background-color: transparent;
    border-color: #005197;
    color: #005197;
}

.custom-btn-outline:hover {
    background-color: #005197;
    color: #FFFFFF;
}

/* 2. Campus News Grid (inspired by Law website layout) */
.custom-news-section {
    padding: 80px 0;
    background-color: #F8F9FA;
    width: 100%;
}

.custom-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-news-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.custom-news-img-box {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.custom-news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-news-card:hover .custom-news-img-box img {
    transform: scale(1.05);
}

.custom-news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #005197;
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.custom-news-date span {
    display: block;
}

.custom-news-day {
    font-size: 16px;
    font-weight: 700;
}

.custom-news-month {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.custom-news-content {
    padding: 25px;
}

.custom-news-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: #FF8C06;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.custom-news-cardtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.custom-news-cardtitle a {
    color: #000000;
}

.custom-news-cardtitle a:hover {
    color: #005197;
}

.custom-news-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #6D7380;
    line-height: 1.6;
    margin-bottom: 15px;
}

.custom-news-readmore {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #005197;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.custom-news-readmore:hover {
    color: #FF8C06;
}

.custom-news-readmore svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.custom-news-readmore:hover svg {
    transform: translateX(2px);
}

/* 3. Campus Section with Overlapping Cards */
.custom-campus-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    width: 100%;
}

.custom-campus-textcol {
    max-width: 500px;
}

.custom-campus-tag {
    color: #FF8C06;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
}

.custom-campus-title {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.custom-campus-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #3C3C3C;
}

.custom-campus-highlight {
    background-color: #F8F9FA;
    border-left: 4px solid #005197;
    padding: 15px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #005197;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

/* Right Overlapping Images Grid */
.custom-campus-imgcol {
    position: relative;
    height: 440px;
    width: 100%;
}

.custom-img-card {
    position: absolute;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 5px solid #FFFFFF;
    transition: transform 0.3s ease, z-index 0s, box-shadow 0.3s ease;
}

.custom-card-1 {
    top: 0;
    left: 0;
    width: 60%;
    height: 75%;
    z-index: 2;
}

.custom-card-2 {
    bottom: 0;
    right: 0;
    width: 55%;
    height: 65%;
    z-index: 3;
}

.custom-card-3 {
    top: 20%;
    right: 5%;
    width: 45%;
    height: 50%;
    z-index: 1;
}

.custom-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-img-card:hover {
    transform: scale(1.03) translateY(-4px);
    z-index: 10;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.custom-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 81, 151, 0.95);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.custom-card-2 .custom-card-badge {
    background-color: rgba(255, 140, 6, 0.95);
}

/* 4. Responsive media queries for our overrides */
@media (max-width: 768px) {
    .custom-grid-2, .custom-grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .custom-campus-imgcol {
        height: 340px;
        margin-top: 20px;
    }
    
    .custom-admission-block {
        padding: 30px 20px;
    }
    
    .custom-admission-title {
        font-size: 28px;
    }
    
    .custom-campus-title {
        font-size: 32px;
    }
}
